11.07.2015 Views

Advanced Programming Guide

Advanced Programming Guide

Advanced Programming Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

272 • Chapter 6: <strong>Programming</strong> with Maple Graphics[1.998172852, 0.06977773357]You can plot a sequence of points.> PLOT( POINTS( seq( points(t), t=0..90 ) ) );1.210.80.60.40.200.5 1 1.5 2You can now make an animation. Make each frame consist of thepolygon spanned by the origin, (0, 0), and the sequence of points on thecurve.> frame := n -> [ POLYGONS([ [ 0, 0 ],> seq( points(t), t = 0..60*n) ],> COLOR(RGB, 1.0/n, 1.0/n, 1.0/n) ) ]:The animation consists of six frames.> PLOT( ANIMATE( seq( frame(n), n = 1..6 ) ) );Animation in Static FormThe display command from the plots package can show an animationin static form.> with(plots):Warning, the name changecoords has been redefined> display( PLOT(ANIMATE(seq(frame(n), n = 1..6))) );

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!