summaryrefslogtreecommitdiff
path: root/1332/CH15/EX15.8/15_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '1332/CH15/EX15.8/15_8.sce')
-rwxr-xr-x1332/CH15/EX15.8/15_8.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/1332/CH15/EX15.8/15_8.sce b/1332/CH15/EX15.8/15_8.sce
new file mode 100755
index 000000000..49c24e828
--- /dev/null
+++ b/1332/CH15/EX15.8/15_8.sce
@@ -0,0 +1,12 @@
+//Example 15.8
+//Euler Method
+//Page no. 513
+clc;clear;close;
+deff('y=f(x,y)','y=x+y')
+y(1)=1;
+h=0.1;
+for i=1:6
+ printf('\ny(%g) = %g\n',(i-1)/10,y(i))
+ y(i+1)=y(i)+h*f((i-1)/10,y(i))
+
+end \ No newline at end of file