Re: Why are the functions different?
- To: mathgroup at smc.vnet.net
- Subject: [mg55660] Re: [mg55609] Why are the functions different?
- From: "Matthias Bode" <lvsaba at hotmail.com>
- Date: Fri, 1 Apr 2005 05:36:56 -0500 (EST)
- References: <200503310624.BAA15126@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hello Helge: f1 can be plotted: f1[x_] = Normal[Series[Tanh[x], {x, 0, 5}]] Plot[f1[r], {r, 1, 2}] "=" instead of ":=" Best regards, MATTHIAS BODE Torres Sofer III, depto. 9 A Pedro Borda #1072 esq. Ismael Vásquez COCHABAMBA/BOLIVIA CEL: +591-70 71 56 64 TEL/FAX: +591-4-4 53 34 17 LVSABA at HOTMAIL.COM Time indicated: UTC (=GMT). ----- Original Message ----- From: "Helge Stenstroem" <helge.stenstrom.NOSPAM at NOSPAMericsson.com> To: mathgroup at smc.vnet.net Subject: [mg55660] [mg55609] Why are the functions different? > How are these two functions (f0 and f1) different? f0 can be plotted, > but f1 cannot. > > f1[x_] := Normal[Series[Tanh[x], {x, 0, 5}]] > f0[x_] := x - x^3/3 + (2*x^5)/15 > > When evaluated like this: > f0[x] > f1[x] > they look the same. > > The following gives error messages if f0 is replaced by f1. > Plot[{Tanh[z], f0[z]}, {z, -1, 1}] > > (Mathematica 4.1 on Windows 2000) > -- > Helge Stenström > >