| Hosted by CoCalc | Download | Raw
Kernel: SageMath 9.5

Hearts for Valentine's Day

See this code as a Sage worksheet: https://cocalc.com/projects/1209def0-246c-43fd-b6c4-ae2804a3a6ac/files/Public/hearts.sagews

See also: a rose, contributed by Andrzej Chrzeszczyk: https://cocalc.com/wstein/support/rose

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)
Out[1]: