|
home | manual | reference | regression | sequence | develop | apps |
Sequences
Concepts | Sequences | Actions | Examples | Reference
Examples
Examples ! Many are generated and do not always make sence,
the examples from 'specials' are hand crafted and gives a good view of what the Sequences subsystem of PAD can do.
sequences | specials | random | play/single | play/double | keepRemoveFlag
add and antiprime bell biquadratic catalan caterer ceil chance composite cubic cullen decagonal divide emirp enneadecagonal eval even exponentiation fibonacci floor gnomonic golomb gould happy harshad heptadecagonal heptagonal hexagonal icosihenagonal identity kaprekar kolakoski kynea list loop lucas lucky mersenne modulo moserdebruijn multiple multiply nand negation newmanConway nor not octagonal octahedral odd oeis or palindrome pell pentagonal perfect perrin polite power powerful prime pronic random range recaman repeat round semiprime square step strong substract sylvester tetrahedral triangular tribonacci xnor xor xpadovan
power
basic/power.pad
HTML RESULT {sequence power=4}
{$sequence}
{/sequence}4 16 64 256 1024 4096 16384 65536 262144 1048576play/single/power.pad
HTML RESULT {sequence even, rows=5} {$sequence} {/sequence}2 4 6 8 10{sequence power=4, rows=10} {$sequence} {/sequence}4 16 64 256 1024 4096 16384 65536 262144 1048576{sequence even, power=4, rows=5} {$sequence} {/sequence}16 256 4096 65536 1048576play/double/power.pad
HTML RESULT {sequence '11..14', push='one'}{sequence '5..2', push='two'}{sequence one}
{$sequence}
{/sequence}11 12 13 14{sequence two}
{$sequence}
{/sequence}5 4 3 2{sequence one, power='two'}
{$sequence}
{/sequence}48828125 16777216 1594323 16384keepRemoveFlag/power.pad
HTML RESULT {sequence 25, push='mySequence'}{pull mySequence, make, power=4} {$sequence} {/pull}4 16 64 256 1024 4096 16384 65536 262144 1048576 4194304 16777216 67108864 268435456 1073741824 4294967296 17179869184 68719476736 274877906944 1099511627776 4398046511104 17592186044416 70368744177664 281474976710656 1125899906842624{pull mySequence, keep, power=4} {$sequence} {/pull}4 16{pull mySequence, remove, power=4} {$sequence} {/pull}1 2 3 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25{pull mySequence, flag, power=4} {$sequence} {/pull}0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
|
home | manual | reference | regression | sequence | develop | apps |
(c) 2003-2025 Herbert Groot Jebbink