MathGroup Archive 2006

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

Search the Archive

Re: Generating a function from a series


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