diff options
Diffstat (limited to '50/CH6/EX6.20/ex_6_20.sce')
-rwxr-xr-x | 50/CH6/EX6.20/ex_6_20.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/50/CH6/EX6.20/ex_6_20.sce b/50/CH6/EX6.20/ex_6_20.sce new file mode 100755 index 000000000..5430115f1 --- /dev/null +++ b/50/CH6/EX6.20/ex_6_20.sce @@ -0,0 +1,18 @@ +// example no. 6.20,
+// caption: solve the system of equations
+
+//1) eulercauchy method solving simultanious ODE
+
+deff('[z]=f1(t,u,v)','z=-3*u+2*v');
+deff('[w]=f2(t,u,v)','w=3*u-4*v');
+
+
+[u,v,t] = simeulercauchy(0,.5,0,.4,.2,f1,f2)
+
+// 2) RK4 method solving simultanious ODE
+
+
+
+[u,v,t]=simRK4(0,.5,0,.4,.2,f1,f2)
+
+
|