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/CH20/EX20.1 | |
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/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 |