El código de programación más romántico se puede copiar
importar numpy como np
importar tiempo
importar matplotlib.pyplot como plt
def plot_love(numbers):
para k en rango(números):
time.sleep(0.05)
def f(x, love=50):
y = x ** (2/3) 0.9 * np.sqrt(3.3-x**2)*np.sin(love*np.pi*x)
devuelve y
x = np.linspace(0, 2, 1500)
y = [f(i, k) para i en x]
plt.plot(x, y, color= 'rojo', ancho de línea=5)
plt.plot(-x, y, color='rojo', ancho de línea=5)
plt.xlim(-2, 2)
plt.show()
plot_love(100)