diff options
Diffstat (limited to '1332/CH20/EX20.1')
-rwxr-xr-x | 1332/CH20/EX20.1/20_1.pdf | bin | 0 -> 6226 bytes | |||
-rwxr-xr-x | 1332/CH20/EX20.1/20_1.sce | 19 |
2 files changed, 19 insertions, 0 deletions
diff --git a/1332/CH20/EX20.1/20_1.pdf b/1332/CH20/EX20.1/20_1.pdf Binary files differnew file mode 100755 index 000000000..e9c8204f9 --- /dev/null +++ b/1332/CH20/EX20.1/20_1.pdf diff --git a/1332/CH20/EX20.1/20_1.sce b/1332/CH20/EX20.1/20_1.sce new file mode 100755 index 000000000..ba5d7e975 --- /dev/null +++ b/1332/CH20/EX20.1/20_1.sce @@ -0,0 +1,19 @@ +//Example 20.1
+//Direct Method
+//Page no. 682
+clc;clear;close;
+h=1/3;
+A=[-4,1,1,0;1,-4,0,1;1,0,-4,1;0,1,1,-4]
+x=0;
+for i=1:4
+ x=x+h
+ if i==4 then
+ B(i,1)=0
+ else
+ B(i,1)=-1*sin(x*%pi)^2
+ end
+end
+disp(A,'A =')
+disp(B,'B =')
+U=inv(A)*B
+disp(U,'U =')
\ No newline at end of file |