-- Draw demo draw(floor(x)) draw(1/x) draw(5 sin(x) / x) draw(5 cos(x) / x) draw(5 (sin(x),cos(x))) -- lemniscate X = cos(t) / (1 + sin(t)^2) Y = sin(t) cos(t) / (1 + sin(t)^2) f = (X,Y) draw(5f,t) -- cardioid r = 1/2 (1 + cos(t)) u = (cos(t),sin(t)) xrange = (-1,1) yrange = (-1,1) trange = (0,2pi) draw(r u,t) -- smiley face xrange = (-10,10) yrange = (-10,10) trange = (-pi,pi) f(t) = test( t < 0, 5 * (cos(2*t),sin(2*t)), t < pi/4, (cos(8*t)/2,sin(8*t)) + (-2,2), t < pi/2, (cos(8*t)/2,sin(8*t)) + (2,2), 3 * (cos(2*t),sin(2*t)) ) draw(f,t) f = quote(abs(x^x)) xrange = (-2,2) yrange = (-2,2) draw(f,x) f(t) = (real(t^t),imag(t^t)) xrange = (-2,2) yrange = (-2,2) trange = (-4,2) draw(f,t)
Run