Square CoCalc Logo
Why CoCalc?SoftwarePricingPoliciesExploreInfoTry CoCalc Sign InSign Up
Path: Public/hearts.ipynb
Description: Mathematical heart shapes for Valentine's Day
Views: 307
License: none
Project: HEARTS
Edit | Raw | Embed | Download

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