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 ? > >