SharedCalculus crash course.sagewsOpen in CoCalc
Author: Bojan Endrovski
Views : 8
parametric_plot([cos(x) + 2*cos(x/4), sin(x) - 2*sin(x/4)], (x,0,8*pi), color='green', thickness=3, fill = True) plot(x * sin(x), (x, -2, 10))
%var u, v fx = (3*(1+sin(v)) + 2*(1-cos(v)/2)*cos(u))*cos(v) fy = (4+2*(1-cos(v)/2)*cos(u))*sin(v) fz = -2*(1-cos(v)/2) * sin(u) parametric_plot3d([fx, fy, fz], (u, 0, 2*pi), (v, 0, 2*pi), color="green", opacity=.7, mesh=0, spin=5)
3D rendering not yet implemented
@interact def interactive_function(a = slider(0, 10, .05, default=4), b = (-3, 3, .1)): f(x) = b * x + sin(a * x) plot(f, (x, -5, 5)).show()
Interact: please open in CoCalc
diff(1 + x + x^2, x)
2*x + 1