From ca1ce44c912223c2906341e16077d947027cf7ed Mon Sep 17 00:00:00 2001 From: MateusStano <69485049+MateusStano@users.noreply.github.com> Date: Sat, 30 Mar 2024 19:28:37 -0300 Subject: [PATCH] Update rocketpy/mathutils/function.py Co-authored-by: Gui-FernandesBR <63590233+Gui-FernandesBR@users.noreply.github.com> --- rocketpy/mathutils/function.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rocketpy/mathutils/function.py b/rocketpy/mathutils/function.py index 731fc7810..9dd9ebdf3 100644 --- a/rocketpy/mathutils/function.py +++ b/rocketpy/mathutils/function.py @@ -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