📑  SageMath Online Mini Campus. Code Set 24

🌀   Homepage     🌀   GitHub Pages     🌀   Previous     🌀   Instagram Posts     🌀   Pinterest Posts

The set of interactive pages with the following structure:

Example of Computations $\mathbb{\implies}$ Your Experiments $\mathbb{\implies}$ Python Modules $\mathbb{\implies}$ Other Languages

Example of Computations

Click the $\mathbb{activate}$ button below to display an interactive example.


@interact
def _(a=[3,2,1],b=[3,2,1],c=[3,2,1]):
    s='$x(t)=sin(%s*t)^2; y(t)=cos(%s*t)^3; '+\
      'z(t)=sin(%s*t)*ln(t+1)$'
    pretty_print(html('<p style=%s>'%'font-size:140%;'+\
                      s%(a,b,c)+'</p>'))
    f=lambda p:(sin(a*p)^2,cos(b*p)^3,sin(c*p)*ln(p+1))
    t=Tachyon(xres=700,yres=700,camera_center=(-4,-6,1))
    t.texture('t1',color=(0,0,.3),opacity=.5)
    t.texture('t2',color=(.9,.9,.9),texfunc=2)
    t.parametric_plot(f,0,6*pi,'t1',r=.03)
    t.plane((7,7,-7),(0,-1,1),'t2')
    t.light((-8,-6,4),1,(1,1,1)); t.show()


Your Experiments

Type your own SageMath code lines below and click the $\mathbb{evaluate}$ button.


This code cell was evaluated automatically.


Python Modules

Other Languages (R, HTML, ...)

<script src='https://d3js.org/d3.v4.min.js'></script> was added in the page head.