Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computational physics: intro workshop

Similar presentations


Presentation on theme: "Computational physics: intro workshop"— Presentation transcript:

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.


Download ppt "Computational physics: intro workshop"

Similar presentations


Ads by Google