Download presentation
Presentation is loading. Please wait.
1
Computational physics: intro workshop
1) Download all the example codes from the lecture, compile and execute them. Recap what we have discussed in the lectures about macros, arrays, function calls and pointers using these example codes. 2) The series expansion of sin(x) is given by the expression write a C program to calculate using this expansion modify this code to give an expression which is accurate to 10 decimal places compare this answer with the sine function in math.h 3) Draw a flow diagram which can sort numbers according to their size, with smallest first and largest last. Write a code which implements this algorithm on a file containing 10 random numbers.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.