Multidimensional Newton-Raphson method: Difference between revisions
Content added Content deleted
(→{{header|zkl}}: Added Kotlin example) |
m (→{{header|Kotlin}}: Minor correction to pre-amble.) |
||
Line 108: | Line 108: | ||
A straightforward approach multiplying by the inverse of the Jacobian, rather than dividing by f'(x) as one would do in the single dimensional case, which is quick enough here. |
A straightforward approach multiplying by the inverse of the Jacobian, rather than dividing by f'(x) as one would do in the single dimensional case, which is quick enough here. |
||
As neither the |
As neither the JDK nor the Kotlin Standard Library have matrix functions built in, most of the functions used have been taken from other tasks. |
||
<lang scala>// Version 1.2.31 |
<lang scala>// Version 1.2.31 |
||