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 &nbsp; (from a default of 9) &nbsp; to &nbsp; 120 &nbsp; to accommodate roots closer to zero.
<br>was increased &nbsp; (from a default of 9) &nbsp; to &nbsp; 120 &nbsp; 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.*/