Bernstein basis polynomials: Difference between revisions

Content added Content deleted
(New post.)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 2,941: Line 2,941:
{{libheader|Wren-math}}
{{libheader|Wren-math}}
Note that the library method, ''Math.evalPoly'', evaluates polynomials of any degree using Horner's rule but requires the coefficients to be presented in highest to lowest degree order.
Note that the library method, ''Math.evalPoly'', evaluates polynomials of any degree using Horner's rule but requires the coefficients to be presented in highest to lowest degree order.
<syntaxhighlight lang="ecmascript">import "./fmt" for Fmt
<syntaxhighlight lang="wren">import "./fmt" for Fmt
import "./math" for Math
import "./math" for Math