Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
7c1173db
Commit
7c1173db
authored
Apr 10, 2011
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ModSim ass3: Worked on harmonic oscillator.
parent
a391a1ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
modsim/ass3/compare_osc.sh
modsim/ass3/compare_osc.sh
+1
-1
modsim/ass3/main.c
modsim/ass3/main.c
+1
-1
No files found.
modsim/ass3/compare_osc.sh
View file @
7c1173db
...
...
@@ -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
modsim/ass3/main.c
View file @
7c1173db
...
...
@@ -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) ) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment