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 /149/CH4/EX4.17 | |
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 '149/CH4/EX4.17')
-rwxr-xr-x | 149/CH4/EX4.17/ques17.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/149/CH4/EX4.17/ques17.sce b/149/CH4/EX4.17/ques17.sce new file mode 100755 index 000000000..4ff07ee8d --- /dev/null +++ b/149/CH4/EX4.17/ques17.sce @@ -0,0 +1,16 @@ +//ques16
+disp('Maclaurins series');
+disp('f(x)=f(0)+xf1(0)+x^2/2!*f2(0)+x^3/3!*f3(0)+......');
+syms x a
+
+ y=%e^(sin(a));
+ n=input('enter the number of expression in seris : ');
+ a=0;
+t=eval(y);
+a=0;
+for i=2:n
+ y1=diff(y,'a',i-1);
+ t=t+x^(i-1)*eval(y1)/factorial(i-1);
+end
+disp(t)
+
|