I am new to python. I want to calculate M for the expression given in the code
from sympy import *
from sympy.plotting import plot_parametric
import matplotlib.pyplot as plt
import matplotlib.animation as animation
from mpl_toolkits.mplot3d import Axes3D
a = 45
t = symbols('t')
for alpha in range(.5, 6, .1):
M = a * sqrt(cos(2 * t) + sqrt(pow(alpha, 4) + pow(sin(2 * t), 2)))
x = M * cos(t)
y = M * sin(t)
plot_parametric(x, y, (t, 0, 2 * pi))
I tried to generate data for alpha^4 as
x=range(.5,6,.1)
k=[n**4 for n in x]
but that also of no good. Please help.