Roots of a quadratic function: Difference between revisions

m
Line 1,090:
'''Solution''' use J's built-in polynomial solver:
p.
 
This primitive converts between the coefficient form of a polynomial (with the exponents being the array indices of the coefficients) and the multiplier-and-roots for of a polynomial (with two boxes, the first containing the multiplier and the second containing the roots).
 
'''Example''' using inputs from other solutions and the unstable example from the task description:
 
6,951

edits