Polynomial long division: Difference between revisions

Undo revision 361341 by Peak (talk)
(→‎{{header|jq}}: representation)
(Undo revision 361341 by Peak (talk))
 
Line 2,492:
'''Adapted from the second version in the [[#Wren|Wren]] entry.'''
 
In this entry, thepolynomials polynomialare ofrepresented degreeby n,JSON SIGMAarrays c[i]exactly * x^(n-i), is represented byas
in the task description; that is, using jq notation, `.[$i]` corresponds to
the JSON array c.
the coefficient of {\displaystyle x^i}.
<syntaxhighlight lang=jq>
# Emit the canonical form of the polynomical represented by the input array
2,489

edits