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.15/Ex3_15.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.15/Ex3_15.sce')
-rwxr-xr-x | 3293/CH3/EX3.15/Ex3_15.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/3293/CH3/EX3.15/Ex3_15.sce b/3293/CH3/EX3.15/Ex3_15.sce new file mode 100755 index 000000000..0237cc05a --- /dev/null +++ b/3293/CH3/EX3.15/Ex3_15.sce @@ -0,0 +1,20 @@ +//page 89
+//Example 3.15
+clc;
+clear;
+close;
+disp('Differentiation operator D is defined as:');
+D = zeros(4,4);
+x = poly(0,"x");
+for i= 1:4
+ t= i-1;
+ f = derivat(x^t);
+ printf('(Df%d)(x) = ',i);
+ disp(f);
+ if ~(i == 1) then
+ D(i-1,i) = i-1;
+ end
+end
+disp('Matrix of D in ordered basis is:');
+disp(D,'[D] = ');
+//end
|