diff options
Diffstat (limited to '1332/CH10/EX10.2')
-rwxr-xr-x | 1332/CH10/EX10.2/10_2.pdf | bin | 0 -> 6267 bytes | |||
-rwxr-xr-x | 1332/CH10/EX10.2/10_2.sce | 17 |
2 files changed, 17 insertions, 0 deletions
diff --git a/1332/CH10/EX10.2/10_2.pdf b/1332/CH10/EX10.2/10_2.pdf Binary files differnew file mode 100755 index 000000000..5ef8122da --- /dev/null +++ b/1332/CH10/EX10.2/10_2.pdf diff --git a/1332/CH10/EX10.2/10_2.sce b/1332/CH10/EX10.2/10_2.sce new file mode 100755 index 000000000..4221dc877 --- /dev/null +++ b/1332/CH10/EX10.2/10_2.sce @@ -0,0 +1,17 @@ +//Example 10.2
+//Contraction Method and Seidel Method
+//Page no. 315
+clc;clear;close;
+x(1)=0;y(1)=0
+printf('(a) Contraction Mapping\n\nn\txn\t\tyn\n--------------------------------\n 0\t%f\t%f\n',x(1),y(1))
+for i=2:9
+ x(i)=sin(x(i-1)+y(i-1))
+ y(i)=cos(x(i-1)-y(i-1))
+ printf(' %i\t%f\t%f\n',i-1,x(i),y(i))
+end
+printf('\n\n\n(b) Seidel Method\n\nn\txn\t\tyn\n--------------------------------\n 0\t%f\t%f\n',x(1),y(1))
+for i=2:9
+ x(i)=sin(x(i-1)+y(i-1))
+ y(i)=cos(x(i)-y(i-1))
+ printf(' %i\t%f\t%f\n',i-1,x(i),y(i))
+end
\ No newline at end of file |