Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168703
Image: ubuntu2004
t=var('t') #Defines t as a dummy variable.
p1=plot(sin(t),-2*pi,2*pi) #2D Plot of sin(t) vs t.
#Information to display on sin(t) vs t plot: title=text("2D Plot: sin(t) vs t", (2.6,1.5), rgbcolor='black',vertical_alignment="top") curve=text("y=sin(t)", (-5,1.2), rgbcolor='black',vertical_alignment="top")
show(p1+title+curve, axes_labels=('t','y'))
p2=plot(cos(t),-2*pi,2*pi) #2D plot of cos(t) vs t.
#Information to display on cos(t) vs t plot: title=text("2D Plot: cos(t) vs t", (2.65,1.5), rgbcolor='black',vertical_alignment="top") curve=text("y=cos(t)", (-5,1.2), rgbcolor='black',vertical_alignment="top")
show(p2+title+curve, axes_labels=('t','y'))
p3=parametric_plot((cos(3*t),sin(2*t)),-2*pi,2*pi) #Where x=cos(t) and y=sin(t)
#Information to display on sin(t) vs cos(t) parametric plot: title=text("Parametric Plot: sin(t) vs cos(t)", (0.7,1.5), rgbcolor='black',vertical_alignment="top")
show(p3+title, axes_labels=('x','y'))