Polynomial long division: Difference between revisions

Content added Content deleted
m (→‎{{header|Phix}}: online tag)
m (→‎{{header|Wren}}: Minor tidy)
Line 4,007: Line 4,007:
===Version 1===
===Version 1===
{{libheader|Wren-dynamic}}
{{libheader|Wren-dynamic}}
<syntaxhighlight lang="ecmascript">import "/dynamic" for Tuple
<syntaxhighlight lang="wren">import "./dynamic" for Tuple


var Solution = Tuple.create("Solution", ["quotient", "remainder"])
var Solution = Tuple.create("Solution", ["quotient", "remainder"])
Line 4,106: Line 4,106:


===Version 2===
===Version 2===
<syntaxhighlight lang="ecmascript">class Polynom {
<syntaxhighlight lang="wren">class Polynom {
construct new(factors) {
construct new(factors) {
_factors = factors.toList
_factors = factors.toList