PlanetMath (more info)
 Math for the people, by the people. Sponsor PlanetMath
Encyclopedia | Requests | Forums | Docs | Wiki | Random | RSS  
Login
create new user
name:
pass:
forget your password?
Main Menu
[parent] Viewing Message
``Re: graphs'' by alozano on 2005-02-18 17:23:57
Yep, the graphs were made with Mathematica,

* To find the Taylor polynomial of degree $n$

Normal[Series[Sin[x],{x,0,n}]]

* To plot (for example Sin[x] and T_1(x)=x ):

Plot[{Sin[x],x},{x,-4,4},ImageSize->{640,480},PlotStyle->{Hue[0.2],Hue[0.7]}]

I can't remember the Hue assignment for the colors I used. The color is given by a number 0<=x<= 1 and Hue[x].

* To export the graph to eps, jpg or whatever .ext :

Export["prettygraph.ext", Plot[{Sin[x],x} ... ]]

Alvaro
[ reply | up | top ]
Interact
reply