Computational physics: intro workshop - PowerPoint PPT Presentation

1 / 1
About This Presentation
Title:

Computational physics: intro workshop

Description:

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 – PowerPoint PPT presentation

Number of Views:41
Avg rating:3.0/5.0
Slides: 2
Provided by: ITSI5
Category:

less

Transcript and Presenter's Notes

Title: Computational physics: intro workshop


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.
Write a Comment
User Comments (0)
About PowerShow.com