Jump to content

Roots of a function: Difference between revisions

m
→‎optimized function: added a comment to the REXX section header.
m (→‎optimized function: changed comments and whitespace.)
m (→‎optimized function: added a comment to the REXX section header.)
Line 1,960:
This is a slightly optimized version of the   '''F'''   function.
<br><br>When doing thousands of evaluations, every little bit helps.
 
Using &nbsp; <big> '''x+x''' </big> &nbsp; instead of &nbsp; <big> '''2*x''' </big> &nbsp; is faster.
<lang rexx>/*──────────────────────────────────F function────────────────────────────────*/
f: procedure; parse arg x; x2=x*x; return x*x2 - 3*x2 + x+x</lang>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.