Skip to content

Commit

Permalink
Update rocketpy/mathutils/function.py
Browse files Browse the repository at this point in the history
Co-authored-by: Gui-FernandesBR <[email protected]>
  • Loading branch information
MateusStano and Gui-FernandesBR authored Mar 30, 2024
1 parent 0bd6f63 commit ca1ce44
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rocketpy/mathutils/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,7 @@ def linear_interpolation(x, x_min, x_max, x_data, y_data, coeffs):
elif interpolation == 1: # polynomial

def polynomial_interpolation(x, x_min, x_max, x_data, y_data, coeffs):
y = np.sum(coeffs * x ** np.arange(len(coeffs)))
return y
return np.sum(coeffs * x ** np.arange(len(coeffs)))

self._interpolation_func = polynomial_interpolation

Expand Down

0 comments on commit ca1ce44

Please sign in to comment.