Gradient descent: Difference between revisions
Content added Content deleted
(→{{header|ALGOL 68}}: Use the actual gradient.) |
|||
Line 16: | Line 16: | ||
{{works with|ALGOL 68G|Any - tested with release 2.8.3.win32}} |
{{works with|ALGOL 68G|Any - tested with release 2.8.3.win32}} |
||
{{Trans|Go}} modified to use the actual gradient function - |
{{Trans|Go}} modified to use the actual gradient function - |
||
{{Trans| |
{{Trans|Fortran}} |
||
THe results agree with the Fortran sample and the Julia sample to 6 places. |
THe results agree with the Fortran sample and the Julia sample to 6 places. |
||
<lang algol68>PROC steepest descent = ( REF[]LONG REAL x, LONG REAL alphap, tolerance )VOID: |
<lang algol68>PROC steepest descent = ( REF[]LONG REAL x, LONG REAL alphap, tolerance )VOID: |