The set of interactive pages with the following structure:
Example of Computations $\mathbb{\implies}$ Your Experiments $\mathbb{\implies}$ Python Modules $\mathbb{\implies}$ Other Languages
Click the $\mathbb{activate}$ button below to display an interactive example.
@interact
def _(N=[12,11,..,3]):
def P(i): return [(cos(t),sin(t)) for t in srange(0,2*pi,2*pi/i)]
def col(i): return colormaps.hsv(22*(i-3))[:3]
p=sum([polygon2d(P(n),alpha=n/12,color=col(n)).plot3d(z=-.15*n)
for n in [3..N]])
p.show(frame=False)
Type your own SageMath code lines below and click the $\mathbb{evaluate}$ button.
This code cell was evaluated automatically.
<script src='https://d3js.org/d3.v4.min.js'></script> was added in the page head.