#LinearInterpolation
from [Link] import interp1d
import [Link] as plt
x = [0,10,15,20,22.5,30]
y = [0,227.04,362.78,517.35,602.97,901.67]
f = interp1d(x,y)
v = f(16)
print(v)
[Link]('seaborn-v0_8-pastel')
[Link](figsize=(10,8))
[Link](x,y,'-ob')
[Link](16,v,'ro')
[Link]("Find the value of the velocity at t=16s")
[Link]("t(s)")
[Link]("v(t)(m/s)")
[Link]()
[Link]()
from [Link] import interp1d
import [Link] as plt
x = [-1,0,1,2]
y = [8,5,2,5]
f = interp1d(x,y)
y_interp = f(1.5)
print(y_interp)
[Link]('seaborn-v0_8-pastel')
[Link](figsize=(10,8))
[Link](x,y,'-ob')
[Link](1.5,y_interp,'ro')
[Link]("Determine the value of y at x =1.5")
[Link]("x")
[Link]("y")
[Link]()
[Link]()