summaryrefslogtreecommitdiff
path: root/149/CH4/EX4.19/ques19.sce
blob: 87b4079825eb2d2ab825541e807849607a8bb013 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//ques19
disp('Maclaurins series');
disp('f(x)=f(0)+xf1(0)+x^2/2!*f2(0)+x^3/3!*f3(0)+......');
syms x a b

  y=%e^(a*asin(b));
  n=input('enter the number of expression in seris : ');
  b=0;
t=eval(y);

for i=2:n
  y1=diff(y,'b',i-1);
   t=t+x^(i-1)*eval(y1)/factorial(i-1);
end
disp(t)