import matplotlib.pyplot as plt
from sympy import symbols, sin, cos, pi, latex
from spb import plot_polar

x = symbols("x")
expr = sin(2 * x) * cos(5 * x) + pi / 2
plot_polar(expr, (x, 0, 2 * pi),
    polar_axis=True, ylim=(0, 3), title="$%s$" % latex(expr))

plt.savefig("ex417.png", dpi=100)
plt.show()

Discover more from Tips and Hints for Aerospace Engineers

Subscribe now to keep reading and get access to the full archive.

Continue reading