You are on page 1of 1

Programming-problem set 1-2 – Classical Mechanics 1 Until : 12/08/1402

[Replaced by D]Fixed-Point iteration method : For solving 𝑥 = 𝑔(𝑥)

We let

𝑥𝑛+1 = 𝑔(𝑥𝑛 )

Pick a value of 𝑥1 and then perform iteration until


convergence.
converge if

|𝑔′ (𝑟𝑜𝑜𝑡)| < 1

-------------------------------------------------------------------------------------------------------------------------------

A- Use Euler method to numerically solve the simple pendulom


problem with

𝑙 = 1 𝑚 ; 𝛿𝑙 = 0.04 ; 𝑡𝑒𝑛𝑑 = 20 𝑠 ; 𝜃0 = 𝑥0 = 0.2 𝑟𝑎𝑑𝑖𝑢𝑠 ; 𝜔0 = 𝑣0 = 0.0 ; 𝑔 = 9.8 𝑚. 𝑠 −2

Plot 𝑋(𝑡) and 𝑈(𝑡).


-------------------------------------------------------------------------------------------------------------------------------
B- Same as (A) above but using Euler-Cromer Method.

You might also like