Polynomial long division: Difference between revisions

→‎{{header|jq}}: representation
m (→‎{{header|Wren}}: Minor tidy)
(→‎{{header|jq}}: representation)
Line 2,492:
'''Adapted from the second version in the [[#Wren|Wren]] entry.'''
 
In this entry, polynomialsthe arepolynomial representedof bydegree JSONn, arraysSIGMA exactlyc[i] as* x^(n-i), is represented by
the JSON array c.
in the task description; that is, using jq notation, `.[$i]` corresponds to
the coefficient of {\displaystyle x^i}.
<syntaxhighlight lang=jq>
# Emit the canonical form of the polynomical represented by the input array
2,489

edits