Hi(adsbygoogle = window.adsbygoogle || []).push({});

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

But I got following errors.Code (Text):

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}]

And in the end it plotted only sin(x). so whats happening ?Code (Text):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. >>

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Mathematica plotting several functions

Loading...

Similar Threads - Mathematica plotting several | Date |
---|---|

Mathematica Cannot Plot This Function in Mathematica | Feb 26, 2018 |

Is the integral for current correct? | Jul 7, 2017 |

Mathematica Plot Real Portion (Contour Plot) | Jun 21, 2017 |

Mathematica Add a rectangle to a plot to indicate range | Jun 15, 2017 |

Mathematica Part of complex plot disappears [mathematica] | Apr 19, 2017 |

**Physics Forums - The Fusion of Science and Community**