Lagrange Interpolation: Difference between revisions
Content deleted Content added
m →{{header|Raku}}: insignificant changes |
m →{{header|Wren}}: Changed to Wren S/H |
||
Line 241: | Line 241: | ||
{{libheader|Wren-fmt}} |
{{libheader|Wren-fmt}} |
||
A polynomial is represented here by a list of coefficients from the lowest to the highest degree. However, the library methods which deal with polynomials expect the coefficients to be presented from highest to lowest degree so we therefore need to reverse the list before calling these methods. |
A polynomial is represented here by a list of coefficients from the lowest to the highest degree. However, the library methods which deal with polynomials expect the coefficients to be presented from highest to lowest degree so we therefore need to reverse the list before calling these methods. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./dynamic" for Tuple |
||
import "./math" for Math |
import "./math" for Math |
||
import "./fmt" for Fmt |
import "./fmt" for Fmt |