Roots of a function: Difference between revisions

Content added Content deleted
m (→‎as-is function: added/changed whitespace and comments.)
m (→‎optimized function: changed comments and whitespace.)
Line 1,960: Line 1,960:
This is a slightly optimized version of the   '''F'''   function.
This is a slightly optimized version of the   '''F'''   function.
<br><br>When doing thousands of evaluations, every little bit helps.
<br><br>When doing thousands of evaluations, every little bit helps.
<lang rexx>/*──────────────────────────────────F function──────────────────────────*/
<lang rexx>/*──────────────────────────────────F function────────────────────────────────*/
f: procedure; parse arg x; x2=x*x; return x*x2 - 3*x2 + x+x</lang>
f: procedure; parse arg x; x2=x*x; return x*x2 - 3*x2 + x+x</lang>


=={{header|RLaB}}==
=={{header|RLaB}}==