Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Generating a function from a series

  • To: mathgroup at smc.vnet.net
  • Subject: [mg65375] Re: [mg65354] Generating a function from a series
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 29 Mar 2006 06:34:14 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Use Normal

f[x_]=Sin[x];

fs[x_] = Normal[Series[f[x],{x,0,5}]];

Plot[{f[x],fs[x]},{x,0,Pi},PlotStyle->{Blue,Red}];


Bob Hanlon

> 
> From: Geico Caveman <spam at spam.invalid>
To: mathgroup at smc.vnet.net
> Subject: [mg65375] [mg65354] Generating a function from a series
> 
> How does one generate a function from a series ?
> 
> For example :
> 
> sf=Series[f(x),{x,0,3}];
> fs[y_]=sf/.x->y
> 
> Now this leaves that pesky O(()^4) term in the function definition,
> rendering the function useless for plots etc. How do I get rid of it ?
> 
> 


  • Prev by Date: Re: Generating a function from a series
  • Next by Date: Re: Generating a function from a series
  • Previous by thread: Re: Generating a function from a series
  • Next by thread: question about the inverse li function