diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1332/CH15/EX15.9 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1332/CH15/EX15.9')
-rwxr-xr-x | 1332/CH15/EX15.9/15_9.pdf | bin | 0 -> 6018 bytes | |||
-rwxr-xr-x | 1332/CH15/EX15.9/15_9.sce | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/1332/CH15/EX15.9/15_9.pdf b/1332/CH15/EX15.9/15_9.pdf Binary files differnew file mode 100755 index 000000000..61dede132 --- /dev/null +++ b/1332/CH15/EX15.9/15_9.pdf diff --git a/1332/CH15/EX15.9/15_9.sce b/1332/CH15/EX15.9/15_9.sce new file mode 100755 index 000000000..ec1387d75 --- /dev/null +++ b/1332/CH15/EX15.9/15_9.sce @@ -0,0 +1,14 @@ +//Example 15.9
+//Trapezium Method
+//Page no. 516
+clc;clear;close;
+deff('y=f(x,y)','y=x*y^2')
+y=1;
+h=0.2;
+y2=poly(0,'y2')
+for i=1:2
+ x=(i-1)*h;
+ x1=x+h
+ y1=roots(-y2+y+h*(f(x,y)+f(x1,y2))/2)
+ printf('\n Y(%i) = %g or %g\n',i,y1(1),y1(2))
+end
\ No newline at end of file |