Pythagorean quadruples: Difference between revisions
Content added Content deleted
Catskill549 (talk | contribs) |
m (→{{header|REXX}}: elided a no longer relevant comment.) |
||
Line 1,682: | Line 1,682: | ||
This version is a brute force algorithm, with some optimization (to save compute time) |
This version is a brute force algorithm, with some optimization (to save compute time) |
||
<br>which pre-computes some of the squares of the positive integers used in the search. |
<br>which pre-computes some of the squares of the positive integers used in the search. |
||
<br>Integers too large for the precomputed values use an optimized integer square root. |
|||
<lang rexx>/*REXX pgm computes/shows (integers), D that aren't possible for: a² + b² + c² = d² */ |
<lang rexx>/*REXX pgm computes/shows (integers), D that aren't possible for: a² + b² + c² = d² */ |
||
parse arg hi . /*obtain optional argument from the CL.*/ |
parse arg hi . /*obtain optional argument from the CL.*/ |