Gradient descent: Difference between revisions

m
→‎{{header|Phix}}: same as raku
(→‎{{header|Raku}}: Updated Raku programming solution ; revised as per the talk page)
m (→‎{{header|Phix}}: same as raku)
Line 516:
printf(1,"The minimum is at x = %.13f, y = %.13f for which f(x, y) = %.16f\n", {x[1], x[2], g(x)})</lang>
{{out}}
Results now match (at least) Algol 68/W, Fortran, Go, Julia, Raku, and Wren [to 6dp or more]. Results on 32/64 bit Phix agree to 13dp, which I therefore choose to show in full here.
<pre>
Testing steepest descent method:
7,804

edits