bruvcandothis
New Coder
Need all the points on the circle to have the same value as at (x , 0)
Any ideas?
regret not attending computational mathematics class **
Any ideas?
regret not attending computational mathematics class **
Python:
import numpy as np
from matplotlib import pyplot as plt
N = 1001
R = np.linspace(1000, 2000, N)
t = np.linspace(0, 2 * np.pi, N)
x = []
y = []
for i in range(N):
for j in range(N):
x.append(R[i]*np.cos(t[j]))
y.append(R[i]*np.sin(t[j]))
fig, ax = plt.subplots()
ax.plot(x, y)
r=1000
def t(x):
return 0.14*(r**0.74)*(np.abs(x/r)**(-3))
plt.show()