Roots of a function: Difference between revisions
Content added Content deleted
m (→{{header|REXX}}: changed wording in the REXX section header, added whitespace, used a template for an output section.) |
m (→function coded in-line: changed wording in the REXX section header.) |
||
Line 2,618: | Line 2,618: | ||
===function coded in-line=== |
===function coded in-line=== |
||
This version is about 40% faster than the 1<sup>st</sup> REXX version. |
This version is about '''40%''' faster than the 1<sup>st</sup> REXX version. |
||
<lang rexx>/*REXX program finds the roots of a specific function: x^3 - 3*x^2 + 2*x via bisection*/ |
<lang rexx>/*REXX program finds the roots of a specific function: x^3 - 3*x^2 + 2*x via bisection*/ |
||
parse arg bot top inc . /*obtain optional arguments from the CL*/ |
parse arg bot top inc . /*obtain optional arguments from the CL*/ |