CoCalc Public Filessage-3d-plots.ipynbOpen with one click!
Author: Harald Schilly
Views : 141
License: Apache License 2.0
Description: 3d plots in sagemath jupyter notebooks
In [1]:
var('x y') k = 2 plot3d(4 * sin(x) * cos(y) * exp(-0.1 * x^2), (x, -k*pi, k*pi), (y, -k*pi, k*pi), mesh=True)

implicit plot

In [2]:
var('x, y, z') T = RDF(golden_ratio) F = 2 - (cos(x+T*y) + cos(x-T*y) + cos(y+T*z) + cos(y-T*z) + cos(z-T*x) + cos(z+T*x)) r = 4.77 implicit_plot3d(F, (x,-r,r), (y,-r,r), (z,-r,r), plot_points=40, color='darkkhaki')