From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 149/CH4/EX4.21/ques21.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 149/CH4/EX4.21/ques21.sce (limited to '149/CH4/EX4.21') 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) + -- cgit