CoCalc Public FilesPublic / hearts.ipynbOpen with one click!
Author: Hal Snyder
Views : 247
Description: Mathematical heart shapes for Valentine's Day
Compute Environment: Ubuntu 18.04 (Deprecated)

Hearts for Valentine's Day

Sources:

In [1]:
x,y,z = var ('x','y','z') w = 1.5 p = implicit_plot3d((x^2+(9/4)*y^2+z^2-1)^3-x^2*z^3-(9/80)*y^2*z^3 == 0, (x,-w,w),(y,-w,w),(z,-w,w), plot_points=80, color='red', smooth=False, frame=False) p.show(viewer='threejs', online=True)