updated test.py
This commit is contained in:
parent
5292197cba
commit
91cd4c24c3
8
test.py
8
test.py
|
@ -1,5 +1,13 @@
|
|||
import interpol.spline.linear.do as do
|
||||
import numpy as np
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
x = np.arange(0, 4, 0.3)
|
||||
y = np.cos(x)
|
||||
ip = do.InterPolator(x, y)
|
||||
|
||||
x_bar = np.arange(0, 4, 0.01)
|
||||
plt.plot(x_bar, np.cos(x_bar))
|
||||
plt.plot(x_bar, [ip.eval_float((i,)) for i in x_bar])
|
||||
plt.show()
|
||||
|
|
Loading…
Reference in New Issue
Block a user