Message Boards Message Boards

0
|
4701 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:
GROUPS:

Taylor Series (Generic function)

Posted 11 years ago
Hi, Im trying to illustrate a basic Taylor Series expansion example listed on document centre. http://wolfram.com/xid/0gipeq-u3o 
Series[f[x], {x, a, 3}]
 
I obtain an answer with a function 
(2^(-1-r) LerchPhi[(-1)^(1+r),1+r,1/2])+O[(2^(-1-r) LerchPhi[(-1)^(1+r),1+r,1/2])]^5

The correct answer should be f + f ' (x-a) + 0.5 f " (x-a)^2 +....

How can I correct the input command to receive the output interms of f , instead of Lerchphi.
POSTED BY: Rashmil D
2 Replies
Posted 11 years ago
It worked after Clearing variables
thanks
POSTED BY: Rashmil D
Hello Rashmil,
I believe that you have previousy assigned f or a

Try this:
 Clear[f, a]
 
 Series[f[x], {x, a, 3}]
 
 f = Sin;
 
 Series[f[x], {x, a, 3}]
 
 a = Pi/6;

Series[f[x], {x, a, 3}]
I hope this is helpful.
POSTED BY: W. Craig Carter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract