Roots of a quadratic function: Difference between revisions
Content added Content deleted
m (→version 1: added whitespace to the REXX section header.) |
m (→version 1: added clarification to a comment in the REXX section header about roots close to zero.) |
||
Line 1,611: | Line 1,611: | ||
The REXX language doesn't have a '''sqrt''' function, nor does it have complex numbers. |
The REXX language doesn't have a '''sqrt''' function, nor does it have complex numbers. |
||
<br>Since "unlimited" decimal precision is part of the language, the NUMERIC DIGITS |
<br>Since "unlimited" decimal precision is part of the language, the NUMERIC DIGITS |
||
<br>was increased (from a default of 9) to 120 to accommodate |
<br>was increased (from a default of 9) to 120 to accommodate a root cl closer to zero than the other. |
||
<br>Note that only 10 digits are shown in the output (precision). |
<br>Note that only 10 digits are shown in the output (precision). |
||
<lang rexx>/*REXX program finds the roots (may be complex) of a quadratic function.*/ |
<lang rexx>/*REXX program finds the roots (may be complex) of a quadratic function.*/ |