Commit 7c1173db authored by Taddeüs Kroes's avatar Taddeüs Kroes

ModSim ass3: Worked on harmonic oscillator.

parent a391a1ef
......@@ -2,4 +2,4 @@
cat report/osc_euler | ./plot.py report/osc_euler.pdf
cat report/osc_rk2 | ./plot.py report/osc_rk2.pdf
cat report/osc_rk4 | ./plot.py report/osc_rk4.pdf
rm report/osc_euler report/osc_rk2 report/osc_rk4
#rm report/osc_euler report/osc_rk2 report/osc_rk4
......@@ -6,7 +6,7 @@
#include "logger.h"
#define DEFAULT_DT .001
#define COMPARE_DT .5
#define COMPARE_DT 1.0
#define INTEGRATE(method, t0, t1, dt, N, FN) { \
if( method(t0, t1, dt, y0, y1, N, &f_ ## FN, (void *)args_ ## FN) ) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment