removed r=0 singularity

master
Daniel Knüttel 2019-07-31 12:01:10 +02:00
parent 17bd8fb17f
commit b7f276a8dd
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ force_function = UFuncWrapper(0, c)
potential_function = UFuncWrapper(2, c)
# Plot the force and potential.
r = np.arange(0, 100, 0.02, dtype=np.float16)
r = np.arange(0.01, 100, 0.02, dtype=np.float16)
f, = plt.plot(r, force_function(r), label="force")
p, = plt.plot(r, potential_function(r), label="potential")
plt.legend(handles=[f, p])