EKG sequence convergence: Difference between revisions
Content deleted Content added
m →{{header|REXX}}: changed two comments. |
m →{{header|REXX}}: extended the number of integers shown for the EKG sequences. |
||
Line 416: | Line 416: | ||
<lang rexx>/*REXX program can generate and display several EKG sequences (with various starts).*/ |
<lang rexx>/*REXX program can generate and display several EKG sequences (with various starts).*/ |
||
parse arg nums start /*obtain optional arguments from the CL*/ |
parse arg nums start /*obtain optional arguments from the CL*/ |
||
if nums=='' | nums=="," then nums= |
if nums=='' | nums=="," then nums= 50 /*Not specified? Then use the default.*/ |
||
if start= '' | start= "," then start=2 5 7 9 10 /* " " " " " " */ |
if start= '' | start= "," then start=2 5 7 9 10 /* " " " " " " */ |
||
Line 454: | Line 454: | ||
end /*j*/</lang> |
end /*j*/</lang> |
||
{{out|output|text= when using the default inputs:}} |
{{out|output|text= when using the default inputs:}} |
||
<!-- (output is shown '''<sup>5</sup>/<sub>6</sub>''' size.) !--> |
|||
<pre> |
|||
<pre style="font-size:84%"> |
|||
(start 2): 1 2 4 6 3 9 12 8 10 5 15 18 14 7 21 24 16 20 22 11 33 27 30 25 35 28 26 13 39 36 |
(start 2): 1 2 4 6 3 9 12 8 10 5 15 18 14 7 21 24 16 20 22 11 33 27 30 25 35 28 26 13 39 36 32 34 17 51 42 38 19 57 45 40 44 46 23 69 48 50 52 54 56 49 |
||
(start 5): 1 5 10 4 6 3 9 12 8 14 7 21 15 18 16 20 22 11 33 24 26 13 39 27 30 25 35 28 32 34 |
(start 5): 1 5 10 4 6 3 9 12 8 14 7 21 15 18 16 20 22 11 33 24 26 13 39 27 30 25 35 28 32 34 17 51 36 38 19 57 42 40 44 46 23 69 45 48 50 52 54 56 49 63 |
||
(start 7): 1 7 14 4 6 3 9 12 8 10 5 15 18 16 20 22 11 33 21 24 26 13 39 27 30 25 35 28 32 34 |
(start 7): 1 7 14 4 6 3 9 12 8 10 5 15 18 16 20 22 11 33 21 24 26 13 39 27 30 25 35 28 32 34 17 51 36 38 19 57 42 40 44 46 23 69 45 48 50 52 54 56 49 63 |
||
(start 9): 1 9 3 6 4 8 10 5 15 12 14 7 21 18 16 20 22 11 33 24 26 13 39 27 30 25 35 28 32 34 |
(start 9): 1 9 3 6 4 8 10 5 15 12 14 7 21 18 16 20 22 11 33 24 26 13 39 27 30 25 35 28 32 34 17 51 36 38 19 57 42 40 44 46 23 69 45 48 50 52 54 56 49 63 |
||
(start 10): 1 10 4 6 3 9 12 8 14 7 21 15 5 20 16 18 22 11 33 24 26 13 39 27 30 25 35 28 32 34 |
(start 10): 1 10 4 6 3 9 12 8 14 7 21 15 5 20 16 18 22 11 33 24 26 13 39 27 30 25 35 28 32 34 17 51 36 38 19 57 42 40 44 46 23 69 45 48 50 52 54 56 49 63 |
||
</pre> |
</pre> |
||