 
 
 
 
 
 
Re: Maclaurin Series
- To: mathgroup at smc.vnet.net
- Subject: [mg48145] Re: Maclaurin Series
- From: "John Jowett" <John.Jowett at cern.ch>
- Date: Fri, 14 May 2004 20:58:59 -0400 (EDT)
- Organization: CERN
- References: <c81h52$4qb$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Assuming you want to define f1t for a given f1 and order of the expansion,
then your question is about the difference between := (SetDelayed) and =
(Set).  See the Mathematica Book and try
f1[x_] := Sin[x]BesselJ[0, x]  (* just as an example *)
and
f1t[x_] = Series[f1[x], {x, 0, 10}]    (* NOT := *)
You may also wish to apply Normal in the definitions of f1t.
John Jowett
"Xiaolei Li" <xli10 at uiuc.edu> wrote in message
news:c81h52$4qb$1 at smc.vnet.net...
> hi,
>
> i have some function defined in f1.  i'd like to define a new function,
> f1t, that is the Maclaurin expansion of f1.  when i do something like:
>
> Series[f1[x], {x, 0, 10}]
>
> it gives me the correct expansion.  but how do i define f1t?  i tried:
>
> f1t[x_] := Series[f1[x], {x, 0, 10}]
>
> that doesn't work because it evaluates f1[x] before giving it to
> Series[].  i also tried something like:
>
> f1t[x_] := Evaluate[ Series[f1[x], {x, 0, 10}] ]
>
> but that didn't work either.  i'm a mathematica n00b.  any help is
> greatly appreciated.  thx.
>
> -- 
> Xiaolei Li        |       xli10 at uiuc.edu       |        www.xiaolei.org
>

