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 /3293/CH3/EX3.17/Ex3_17.sce | |
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 '3293/CH3/EX3.17/Ex3_17.sce')
-rwxr-xr-x | 3293/CH3/EX3.17/Ex3_17.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/3293/CH3/EX3.17/Ex3_17.sce b/3293/CH3/EX3.17/Ex3_17.sce new file mode 100755 index 000000000..cd7fcc5b3 --- /dev/null +++ b/3293/CH3/EX3.17/Ex3_17.sce @@ -0,0 +1,19 @@ +//page 93
+//Example 3.17
+clc;
+clear;
+close;
+t = poly(0,"t");
+disp('g1 = f1');
+disp('g2 = t*f1 + f2');
+disp('g3 = t^2*f1 + 2*t*f2 + f3');
+disp('g4 = t^3*f1 + 3*t^2*f2 + 3*t*f3 + f4');
+P = [1 t t^2 t^3;0 1 2*t 3*t^2;0 0 1 3*t;0 0 0 1];
+disp(P,'P = ');
+disp(inv(P),'inverse P = ');
+disp('Matrix of differentiation operator D in ordered basis B is:'); //As found in example 15
+D = [0 1 0 0;0 0 2 0;0 0 0 3;0 0 0 0];
+disp(D,'D = ');
+disp('Matrix of D in ordered basis B'' is:');
+disp(inv(P)*D*P,'inverse(P) * D * P = ');
+//end
|