diff options
Diffstat (limited to '50/CH3/EX3.14/ex_3_14.sce')
-rwxr-xr-x | 50/CH3/EX3.14/ex_3_14.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/50/CH3/EX3.14/ex_3_14.sce b/50/CH3/EX3.14/ex_3_14.sce new file mode 100755 index 000000000..3590d9c29 --- /dev/null +++ b/50/CH3/EX3.14/ex_3_14.sce @@ -0,0 +1,12 @@ +//example no. 3.14
+//solve system by cholesky method
+
+A=[1 2 3;2 8 22;3 22 82]
+
+b=[5;6;-10]
+
+L=cholesky (A,3) //call cholesky function to evaluate the root of the system
+n=3;
+Z=fore(L,b);
+
+X=back(L',Z)
\ No newline at end of file |