diff options
Diffstat (limited to '149/CH4/EX4.21')
-rwxr-xr-x | 149/CH4/EX4.21/ques21.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/149/CH4/EX4.21/ques21.sce b/149/CH4/EX4.21/ques21.sce new file mode 100755 index 000000000..e26c9c70f --- /dev/null +++ b/149/CH4/EX4.21/ques21.sce @@ -0,0 +1,17 @@ +//ques21
+disp('Taylor series');
+disp('f(x+h)=f(x)+hf1(x)+h^2/2!*f2(x)+h^3/3!*f3(x)+......');
+disp('To finf the taylor expansion of tan-1(x+h)')
+syms x h
+
+ y=atan(x);
+ n=input('enter the number of expression in seris : ');
+
+t=y;
+
+for i=2:n
+ y1=diff(y,'x',i-1);
+ t=t+h^(i-1)*(y1)/factorial(i-1);
+end
+disp(t)
+
|