File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -707,13 +707,13 @@ <h2>Notes:</h2>
707707 from numpy.polynomial.polynomial import Polynomial
708708
709709 # Les conditions:
710- plotLagrange = ${ interpolationProject . plot_lagrange }
711- plotSpline = ${ interpolationProject . plot_spline }
712- plotRegression = ${ interpolationProject . plot_regression }
710+ plotLagrange = ${ interpolationProject . plot_lagrange . toString ( ) }
711+ plotSpline = ${ interpolationProject . plot_spline . toString ( ) }
712+ plotRegression = ${ interpolationProject . plot_regression . toString ( ) }
713713
714714 # Les points saisis:
715- x = np.array([${ interpolationProject . x } ])
716- y = np.array([${ interpolationProject . y } ])
715+ x = np.array([${ interpolationProject . x . toString ( ) } ])
716+ y = np.array([${ interpolationProject . y . toString ( ) } ])
717717
718718 # Intervalle des valeurs de x pour un tracé plus précis:
719719 x_fine = np.linspace(min(x), max(x), 1000)
@@ -731,7 +731,7 @@ <h2>Notes:</h2>
731731
732732 if plotRegression:
733733
734- poly_reg = np.poly1d(np.polyfit(x, y, ${ interpolationProject . m } ))
734+ poly_reg = np.poly1d(np.polyfit(x, y, ${ interpolationProject . m . toString ( ) } ))
735735
736736 curves['Régression Polynomiale'] = poly_reg(x_fine)
737737
You can’t perform that action at this time.
0 commit comments