Quick Maple worksheet to produce graphs of ellipse, for solutions for Homework No. 1

 

          First, we define the ellipse as a parametric equation; below is the syntax to do this:

>    nm:=[cos(t),B*sin(t),t=0..2*Pi];

nm := [cos(t), B*sin(t), t = 0 .. 2*Pi]

     The equation above has an arbitrary parameter in it, the ratio of the semiaxes in the two directions.

  The syntax below creates a collection of ellipses with 4 different, specific values for this ratio.

>    nms:=seq(subs(B=j/2,nm),j=1..4);

nms := [cos(t), 1/2*sin(t), t = 0 .. 2*Pi], [cos(t), sin(t), t = 0 .. 2*Pi], [cos(t), 3/2*sin(t), t = 0 .. 2*Pi], [cos(t), 2*sin(t), t = 0 .. 2*Pi]

   The command below then produces a plot with all these distinct, specific ellipses.

   Note the use of the "character" \n  , which gives a carriage return inside the title name.

   Also note one may use Greek characters for labelling.

   Also note the use of the command scaling=constrained, which insists on the same length scale for both axes.

>    plot([nms],x=-1.5..1.5,-2.5..2.5,scaling=constrained, labelfont=[SYMBOL,12], labels=["x","h"], title=`Ellipses \n with axis ratios:  1/2, 1, 3/2, 2`);

[Maple Plot]

>    ?plot[options]

  The command above is NOT part of this document, exactly, but, rather, shows a way to acquire more informtation concerning plot options.