Problem Set 4


Links to content:
Problem Set 4 Output

Euler's Method Matlab
Runge Kutter Method Matlab


Euler's Method Output
Euler's Method Output: Simple Harmonic Oscillator (Matlab)

 photo Euler_zpse7e7a267.png
Runge-Kutta Method Output
Simple Harmonic Oscillator

 photo RK_zpscfe67e17.png
Adaptive Stepper
(matlab)
Reviews error (e)

if e < e min
then step size is doubled & h gets bigger…

else if e > emac
then step size is cut in half & h gets smaller

else
leave h alone