Roots of a quadratic function: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
|||
Line 1,090: | Line 1,090: | ||
'''Solution''' use J's built-in polynomial solver: |
'''Solution''' use J's built-in polynomial solver: |
||
p. |
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: |
'''Example''' using inputs from other solutions and the unstable example from the task description: |
||