Roots of a function: Difference between revisions
Content added Content deleted
m (→[[Roots of a function#ALGOL 68]]: fix typo) |
(added J) |
||
Line 277: | Line 277: | ||
i = i + 1 |
i = i + 1 |
||
END DO |
END DO |
||
=={{header|J}}== |
|||
J has builtin a root-finding operator, '''<tt>p.</tt>''', whose input is the (reversed) coeffiecients of the polynomial. Hence: |
|||
>{:p. 0 2 _3 1 |
|||
2 1 0 |
|||
=={{header|Java}}== |
=={{header|Java}}== |