Anonymous user
Yellowstone sequence: Difference between revisions
m
→vertical histogram plot: changed the output (histogram).
m (→vertical histogram plot: optimized the multiple IF classes.) |
m (→vertical histogram plot: changed the output (histogram).) |
||
Line 953:
/*──────────────────────────────────────────────────────────────────────────────────────*/
gcd: parse arg x,y; do until y==0; parse value x//y y with y x; end; return x</lang>
{{out|output|text= when using the input: <tt>
The terminal screen size has a height of 55 characters (including values), the plot is shown at three quarter scale.
<pre style="font-size:75%">
■
│
│
■ │ ■ │ │ │ │
│ │ ■ │ │ │ ■ │ │ │ │ │
│ │ │ │ │ │ ■ │ │
│ │ ■ │ │ │ │ │ ■ │ │ │ │ │ ■ │ │ │ │ │ │ │ │ │ │ │
■ │ │ ■ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │■ │■│■│■│
│ │ │ ■ │ ■ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │■│■││ ■│││││││
■ │ │ │ ■ ■ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ ■■│ │■│ ■│■││││││ ││││││││
■ │ │ │ │ ■ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │■│■│■│││ ■│││ │││││││││ ││││││││
│ │ │ │ │ ■ │ │ │ │ │ │ │ │ │ │ │ │■│ │■│ │■│││││││││ ││││ │││││││││ ││││││││
│ ■ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │■│■│││■│││ ■│││││││││││ ││││ │││││││││ ││││││││
■ ■ │ ■ │ │ │ │ │ │ │ │ │ │■│■│ │ │■│ ■│││││││││││ ││││││││││││ ││││ │││││││││ ││││││││
■ │ │ │ ■ ■ │ │ │ │ │ │ │ │ │ │■ ■│││││ │■│││ ││││││││││││ ││││││││││││ ││││ │││││││││ ││││││││
│ │ │ │ ■ │ │ │ │ ■ │ │ │ │■│ │■│■││ ││││││■│││││ ││││││││││││ ││││││││││││ ││││ │││││││││ ││││││││
│ │ │ ■ │ │ │ │ │ │■│ │ │ │■│││ ■││││││ ││││││││││││ ││││││││││││ ││││││││││││ ││││ │││││││││■││││││││
│ ■ │ ■ │ │ │ │ │ │■ │■│││ │■│■│││││ │││││││ ││││││││││││ ││││││││││││ ││││││││││││■││││■││││││││││││││││││
│ ■ │ │ │ │ ■ │ │■│ │■││ ■│││││■│││││││││ │││││││ ││││││││││││ ││││││││││││■││││││││││││││││││││││││││││││││││││
5 9 3 1 5 5 1 7 3 9 5 5 5 5 5▼
■ ■ │ │ │ │ ■ │ │ │ │■ ■│││■││││ ││││││││││││││││ │││││││ ││││││││││││■│││││││││││││││││││││││││││││││││││││││││││││││││
■ │ │ │ │ │ │ │■│ ■│■│■││ │││││││││ ││││││││││││││││ │││││││■■││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││
■ │ ■ │ │■ │ │■│■│■│││ │││││││ │││││││││ ■││││││││││││││││■│││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││
■ │ ■ │ │■│■││ │■│││││││││ │││││││■│││││││││■│││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││
│ │■ ■■│■│ ││││││■■│││││││││││■│││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││││
────┴─┴┴──┴┴┴┴─┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴┴
123498115621317122223113242531182536393436149454652415748586235969675161617171371718184481819171819149392111191115121111111111511116141111121613121212
54 5256 010729133658127854545610983925470903812561672918349874103662740701610261322832284454670260040485073060819141218917251222828303723303133
▲ 5 9 3 1 5 5 1 7 3 9 5 5 5 5 5 9 30741 361 258525634187 0729 074389016 65254585
</pre>
|