ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 23 Apr 2020 09:43:49 +0200plotting 5,8,16,24,120 and 600-cellshttps://ask.sagemath.org/question/9231/plotting-581624120-and-600-cells/How would one go about plotting these shapes in sage?
I think it's using polytopes. but I haven't found ones for 16-cell and 120-cell.
Also is this correct?
5-cell = n_simplex(4)
8-cell = n_cube(4)
24-cell = twenty_four_cell
600-cell = six_hundred_cellTue, 14 Aug 2012 06:24:22 +0200https://ask.sagemath.org/question/9231/plotting-581624120-and-600-cells/Answer by Volker Braun for <p>How would one go about plotting these shapes in sage?
I think it's using polytopes. but I haven't found ones for 16-cell and 120-cell.</p>
<p>Also is this correct?</p>
<p>5-cell = n_simplex(4)</p>
<p>8-cell = n_cube(4)</p>
<p>24-cell = twenty_four_cell</p>
<p>600-cell = six_hundred_cell</p>
https://ask.sagemath.org/question/9231/plotting-581624120-and-600-cells/?answer=13921#post-id-13921The 4-cube has 8 facets:
sage: P = polytopes.n_cube(4)
sage: P.f_vector()
(1, 16, 32, 24, 8, 1)
And plot of a projection into 3-d:
sage: P.plot()
I don't think the 120 cell is implemented. The 16-cell is `polytopes.cross_polytope(4)`Tue, 14 Aug 2012 16:04:22 +0200https://ask.sagemath.org/question/9231/plotting-581624120-and-600-cells/?answer=13921#post-id-13921Comment by jipilab for <p>The 4-cube has 8 facets:</p>
<pre><code>sage: P = polytopes.n_cube(4)
sage: P.f_vector()
(1, 16, 32, 24, 8, 1)
</code></pre>
<p>And plot of a projection into 3-d:</p>
<pre><code>sage: P.plot()
</code></pre>
<p>I don't think the 120 cell is implemented. The 16-cell is <code>polytopes.cross_polytope(4)</code></p>
https://ask.sagemath.org/question/9231/plotting-581624120-and-600-cells/?comment=50948#post-id-50948The 120-cell is now available in the library. The `'normaliz'` backend is currently the fastest way to get it.
sage: otc = polytopes.one_hundred_twenty_cell() # slow...
sage: otc = polytopes.one_hundred_twenty_cell(backend='normaliz')
sage: otc.plot()Thu, 23 Apr 2020 09:43:49 +0200https://ask.sagemath.org/question/9231/plotting-581624120-and-600-cells/?comment=50948#post-id-50948