2019-07-12 20:50:36 +00:00
|
|
|
from brown.interaction import UFuncWrapper
|
|
|
|
import numpy as np
|
|
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
|
|
from coefficients import c
|
|
|
|
|
|
|
|
force_function = UFuncWrapper(0, c)
|
2019-07-15 19:45:32 +00:00
|
|
|
potential_function = UFuncWrapper(2, c)
|
2019-07-12 20:50:36 +00:00
|
|
|
|
|
|
|
r = np.arange(0, 100, 0.02, dtype=np.float16)
|
2019-07-15 19:45:32 +00:00
|
|
|
f, = plt.plot(r, force_function(r), label="force")
|
|
|
|
p, = plt.plot(r, potential_function(r), label="potential")
|
|
|
|
plt.legend(handles=[f, p])
|
2019-07-12 20:50:36 +00:00
|
|
|
plt.show()
|