Question: import numpy as np import matplotlib.pyplot as plt r = np . linspace ( 0 , 2 , 1 0 0 ) theta = np

import numpy as np
import matplotlib.pyplot as plt
r = np.linspace(0,2,100)
theta = np.linspace(0,2*np.pi,100)
R, Theta = np.meshgrid(r, theta)
Psi =(R**2/2)*np.cos(Theta)+ Theta/(2*np.pi)
plt.figure()
plt.contour(R*np.cos(Theta), R*np.sin(Theta), Psi)
plt.show()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!