- #1

- 912

- 19

I need to plot [itex]\sin(x)[/itex] and its first,third, fifth power series expansion on the same

plot. here's what I did

Code:

```
T[n_,x_]:=Normal[Series[Sin[x], {x, 0, n}]]
Plot[{Sin[x], T[1, x], T[3, x], T[5, x]}, {x, -2, 2}]
```

But I got following errors.

Code:

```
General::ivar: -1.99992 is not a valid variable. >>
General::ivar: -1.99992 is not a valid variable. >>
General::ivar: -1.99992 is not a valid variable. >>
General::stop: Further output of General::ivar will be suppressed during this calculation. >>
```

And in the end it plotted only sin(x). so whats happening ?