Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

All published worksheets from http://sagenb.org

Views: 168731
Image: ubuntu2004
def Line(n, a=12, b=8): return line([(cos(pi*n/a),sin(pi*n/a)), (-cos(pi*n/b),-sin(pi*n/b))]) Cercle = circle((0, 0), 1) Ligne1 = Line(1) Cercle + Ligne1
Ligne2 = Line(2) Cercle + Ligne1 + Ligne2
Ligne3 = Line(3) Cercle + Ligne2 + Ligne1 + Ligne3
Ligne4 = Line(4) Cercle + Ligne1 + Ligne2 + Ligne3 + Ligne4
Ligne5 = Line(5) Cercle + Ligne1 + Ligne2 + Ligne3 + Ligne4 + Ligne5
Ligne6 = Line(6) Cercle + Ligne1 + Ligne2 + Ligne3 + Ligne4 + Ligne5 + Ligne6
Dessin = Cercle for i in range(1, 6): Dessin += Line(i, 12, 5) Dessin
Plan1 = plot3d(lambda x, y: 0, (-1, 1), (-1, 1), color="red", opacity=0.8) Cube = cube((0, 0, 0), 2, color="lightblue", opacity=0.7) Cube + Plan1
Plan2 = plot3d(lambda x, y: x, (-1, 1), (-1, 1), color="green", opacity=0.9) Cube + Plan1 + Plan2
Plan3 = plot3d(lambda x,y: -x, (-1, 1), (-1, 1), color="red", opacity=0.8) Cube + Plan2 + Plan3
Plan4 = plot3d(lambda x, y: y, (-1, 1), (-1, 1), color="blue", opacity=0.8) Cube + Plan2 + Plan3 + Plan4