Cool Function Plots
x->x^2 x->x^3 x->x^4 x->x^5
x->sin(pi*x) x->cos(pi*x) x->sin(10x) x->sin(3*pi*x)
SAGE code:
sage: v1 = line([[-1,-1],[-1,1]], rgbcolor=(1/4,1/8,3/4))
sage: v2 = line([[1,-1],[1,1]], rgbcolor=(1/4,1/8,3/4))
sage: L = [line([[-1,-1+2*i/50],[1,sin(3*pi*(-1+2*i/50))]],rgbcolor=(i/50,1-i/50,1/4)) for i in range(51)]
sage: t = text('x   ->   sin(3*pi*x)', (0.5, -1.15))
sage: show(v1+v2+sum(L)+t)

You can probably copy an paste this into the SAGE notebook (or, if you are behind a firewall, try the proxy SAGE notebook (Click on "new" on the left corner, make up a name, like "myplots", and password, like "arecool", and click "add". Then select "myplots" from the list and paste the above into a cell. You can include the "sage: " if you want.)

I thank Rick Kreminski for suggesting this style of function plot.


Last modified 2-6-2007 by wdj.