fork download
  1. nnport numpy as np
  2. innport matplotlip.pyplot as plt
  3.  
  4. t= np.linspace(0, 2 * np.pi, 100)
  5.  
  6. x= 16 * np.sin(t)**3
  7. y= 13 * np.cos(t) - 5 * np.cos(2*t) -2 *
  8. np.cos(3*t) - np.cos(4*t)
  9. plt.piot(x,y,color='rad')
  10. plt.fill(x,y,color='red')
  11. plt.axis("equal")
  12. plt.axis("off")
  13.  
  14. plt.show()
Success #stdin #stdout 0.03s 25804KB
stdin
Standard input is empty
stdout
nnport numpy as np
innport matplotlip.pyplot as plt

t= np.linspace(0, 2 * np.pi, 100)

x= 16 * np.sin(t)**3
y= 13 * np.cos(t) - 5 * np.cos(2*t) -2 *
np.cos(3*t) - np.cos(4*t)
plt.piot(x,y,color='rad')
plt.fill(x,y,color='red')
plt.axis("equal")
plt.axis("off")

  plt.show()