X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/b2d1680d3a009d32f5e90f8dd693a5b0a6ca2435..84f6f39be4ffeb6307756b97126ad993bef367a8:/base.plp diff --git a/base.plp b/base.plp index 7d31a4d..3a89a53 100644 --- a/base.plp +++ b/base.plp @@ -13,7 +13,7 @@ Html({ }); my @cols = (2, 6, 8, 9, 10, 12, 16, 18, 20); -my @morecols = (2, 3, 4, 6, 8, 9, 10, 12, 16, 18, 20, 24, 32, 36, 64); +my @morecols = (2 .. 6, 8, 9, 10, 12, 16, 18, 20, 24, 32, 36, 64); my @char = (0..9, 'A'..'Z', 'a'..'z'); :>

Number bases

@@ -30,7 +30,7 @@ use List::Util 'sum'; print ''; print '', $_ for @morecols; for my $max (100, 255, 1024) { - print '', $max; + print '⍳', $max; for my $radix (@morecols) { printf '%.1f', sum(map { radix_economy($_, $radix) } 1 .. $max) / $max; @@ -38,7 +38,7 @@ for my $max (100, 255, 1024) { } :> -

Fractions

+

Reciprocal fractions (n⁻¹)

<: print '
'; @@ -94,7 +94,7 @@ for my $n (2 .. $count) {
-

Duplication

+

Duplication (2ⁿ)

<: use 5.010;