Plotting The Platonic Solids

Description

Sage can plot the 5 platonic solids with the following commands:

  • tetrahedron()
  • cube()
  • octahedron()
  • dodecahedron()
  • icosahedron()

Each command only takes one argument, and optional 3-tuple the declares where the center of the shape is located. If undeclared, it is located at (0,0,0).

Sage Cell

Code

psolids = tetrahedron((0, -4, 0)) + cube((0, -2, 0)) + octahedron((0, 0, 0)) + dodecahedron((0, 2, 0)) + icosahedron((0, 4, 0))
psolids.show()

Options

none

Tags

Primary Tags:

Secondary Tags:

A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.

Related Cells

Any related cells go here. Provide a link to the page containing the information about the cell.

Attribute

Permalink:

Author:

Date: 01 Sep 2019 02:08

Submitted by: Zane Corbiere

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License