Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168731
Image: ubuntu2004
3.1.
point((-1,2))
3.2.
sage: point(((-1,1),(1,-1)),pointsize=30,rgbcolor='red')
3.3.
sage: arrow((1,1),(2,2))
sage: show(arrow((1,1),(2,2)),xmin=-3,xmax=3,ymin=-3,ymax=3)
3.4. 1,5) 2,3).
sage: line(((-1,5), (2,-3)))
3.5. (2,2), (1,3), (0.5,0), (2,6) 7,4).
line( ((-2,2),(-1,-3),(0.5,0),(2,6),(7,-4)),\ linestyle='--', marker='^')
3.6. (1,1).
c1=circle((1,1),1); c1
show(c1,aspect_ratio=1)
3.7. (0,0).
c2= circle((0,0),1,fill=true,rgbcolor=(0.1,0.2,0.3)) c2.show(aspect_ratio=1)
3.8. (0,0).
show(disk((0,0),1,(0,2*pi)),aspect_ratio=1)
3.9. (1,1) 960;/4, 3π/4.
sage: show(disk((-1,-1),4,(pi/4,3*pi/4)),aspect_ratio=1)
3.10. , (1,2), (5,6), (5,0).
sage: polygon([[1,2], [5,6], [5,0]], rgbcolor=(1,0,1))
3.11. .
sage: L=[[cos(pi*i/3),sin(pi*i/3)] for i in range(6)]; sage: show(polygon(L,rgbcolor=(1,0,1)),aspect_ratio=1)
3.12.
sage: plot(sin(x),(-2*pi,2*pi),rgbcolor='black')
3.13.
sage: t=var('t');parametric_plot((3*sin(t),2*cos(t)),0,2*pi)
3.14.
polar_plot(3*x,0,7*pi)
3.15. 12, 17, 19, 37, 30, 10, 8, 5, 4.
bar_chart([12, 17, 19, 37, 30, 10, 8, 5, 4])
3.16. f(x,y)=cos(x3+y2)f(x,y) =\cos{(x^3+y^2)}.
sage: f(x,y)=cos(x^3+y^2) sage: contour_plot(f,(-3,6),(-3,3))
3.17.   f1=sin(x+y)  \;f_1=\sin{(x + y)}\; \;f_2 = \cos{(x y)}\;$.
sage: f1(x,y)=sin(x+y) sage: f2(x,y)=cos(x-y) sage: plot_vector_field((f1,f2), (-3,3), (-3,3))
3.18. .
sage: point3d((-1,2,2),size=10)
3.19. ,
sage: point3d(((-1,1,2),(1,-1,2)),size=5,rgbcolor='green')
3.20. (1,2,3), (1,0,-2), (3,1,4), (2,1,-2).
sage: line3d([(1,2,3), (1,0,-2), (3,1,4), (2,1,-2)],\ color='green',radius=0.02)
3.21. .
sage: u,v=var('u,v') sage: plot3d(u^2-v^2, (u,-1,1), (v,-1,1),\ plot_points=[50,50])
3.22. .
sage: u,v=var('u,v') sage: parametric_plot3d([u*cos(v),u*sin(v),u^2],\ (u,0,1),(v,0,2*pi+0.4))
3.23.
sage: u,v=var('u,v') sage: parametric_plot3d([u*cos(v),u*sin(v),u],\ (u,-1,0), (v, 0, 2*pi+0.5))
3.24.
sage: u,v=var('u,v') sage: f_x = cos(u)*(4*sqrt(1-v^2)*sin(abs(u))^abs(u)) sage: f_y = sin(u) *(4*sqrt(1-v^2)*sin(abs(u))^abs(u)) sage: f_z = v sage: parametric_plot3d([f_x,f_y,f_z],(u,-pi,pi), (v,-1,1),\ frame=False, color='red')