metanum 2.0.3 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -18
- package/format-metanum.js +247 -204
- package/metanum.js +684 -408
- package/package.json +30 -32
- package/test-interface.html +1 -1
- package/test_mixed.js +367 -14
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/metanum)
|
|
4
4
|
|
|
5
|
-
- MetaNum v2.
|
|
5
|
+
- MetaNum v2.1.1 by dlsdl
|
|
6
6
|
|
|
7
7
|
A huge number library holding up to X↑↑X&9e15.
|
|
8
8
|
|
|
@@ -448,11 +448,33 @@ MetaNum.hardy(100.5); // H_{ω²}(10+0.5) ≈ 11085
|
|
|
448
448
|
MetaNum.hardy(1234); // H_{ω³+ω²·2+ω·3+4}(10), exact for small levels and engine-collapsed (F_j = H^{ω^j}) for deep segments
|
|
449
449
|
```
|
|
450
450
|
|
|
451
|
-
Recursion rules:
|
|
451
|
+
Recursion rules:
|
|
452
452
|
-`H_0(n) = n`, `H_{α+1}(n) = H_α(n+1)` (only +1, never iterated),
|
|
453
453
|
-For fractional 0<f<1 we have `H_{α+f}(n) = H_α(n+f)`,
|
|
454
454
|
-`H_λ(n) = H_{λ[n]}(n)` with the CNF fundamental sequences.
|
|
455
455
|
|
|
456
|
+
### hardy(x, base) and FGH(x, y)
|
|
457
|
+
|
|
458
|
+
The second argument is the **base**: the ordinal is read off the digits of x in that base (default 10), and the hierarchy argument is the base itself. The base must be an integer in `[2, 1000]`.
|
|
459
|
+
|
|
460
|
+
```javascript
|
|
461
|
+
MetaNum.hardy(10, 8); // "10" reads as "12" in base 8 → H_{ω+2}(8) = 20
|
|
462
|
+
MetaNum.hardy(10, 4); // "10" reads as "22" in base 4 → H_{ω*2+2}(4) = 24
|
|
463
|
+
MetaNum.hardy(5, 8); // H_5(8) = 13
|
|
464
|
+
MetaNum.hardy(64, 8); // "100" base 8 → H_{ω²}(8) = 2048
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
`MetaNum.fgh(x, y)` is the fast-growing hierarchy entry, defined through hardy: `FGH(x, y) = H_{y^x}(y) = hardy(y^x, y)` (same base validation).
|
|
468
|
+
|
|
469
|
+
```javascript
|
|
470
|
+
MetaNum.fgh(3, 10); // = hardy(1000, 10) = H_{ω³}(10)
|
|
471
|
+
MetaNum.fgh(2, 8); // = hardy(64, 8) = 2048
|
|
472
|
+
```
|
|
473
|
+
|
|
474
|
+
For `base ≠ 10` the plain finite inputs take the base-`base` digit path; structured / power-tower inputs keep the decimal-specific shadowing and are rejected there.
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
456
478
|
### Hardy beyond ω^ω
|
|
457
479
|
|
|
458
480
|
For n ≥ 1e10 the leading exponent k ≥ 10 itself converted to a base-10 ordinal, so `hardy(1e11) = H_{ω^(ω+1)}(10)` sits at the `10{ω+1}10` scale (via `H_{ω^β}(n) = F_β(n)`), The value is evaluated per the definition (from below),so it is strictly below the matching engine hyper-op:
|
|
@@ -645,6 +667,10 @@ MetaNum(10).h100(20); //10{ω^2}20=10{ω*20}10=10{ω*19+9}^8 10{ω*19+8}^8 ...
|
|
|
645
667
|
|
|
646
668
|
# dlsdl's Letter Notation
|
|
647
669
|
|
|
670
|
+
> Formal semantics and the design decisions behind the notation are recorded in
|
|
671
|
+
> [docs/notation-semantics.md](docs/notation-semantics.md); the executable
|
|
672
|
+
> regression suite is [test_mixed.js](test_mixed.js).
|
|
673
|
+
|
|
648
674
|
Modified from PsiCubed's letter notation(<https://googology.fandom.com/wiki/User_blog:PsiCubed2/My_Letter_Notation>)
|
|
649
675
|
|
|
650
676
|
The idea here is to extend the PsiCubed's letter notation to much larger numbers reach level ε0 of FGH or HH. The properties we wish to preserve here are:
|
|
@@ -841,11 +867,13 @@ Rule (v) is an interesting one, though. It basically tells us that if we have an
|
|
|
841
867
|
|
|
842
868
|
Now, all that is left to do is to define !Aa, which has ω^ω level.
|
|
843
869
|
|
|
844
|
-
- !Aaα
|
|
870
|
+
- !Aaα ≡ A(a×⌊α⌋)(α) — the letter token carrying ⌊α⌋ lowercase a's applied at argument α (notation-semantics decision 1B). For a non-integer α this is the continuous extension inside each unit interval (e.g. !Aa1.5 = Aa1.5, !Aa2.5 = Aaa2.5).
|
|
871
|
+
- For an INTEGER α = n the "!" adds one ω^ to the level, so !Aan = 10{ω^n}10 evaluated as the full rule-3 cascade: !Aa1 = 10{ω}10 = 10{10}10 = Aa10, !Aa2 = 10{ω^2}10, !Aa3 = 10{ω^3}10. (This is NOT the token application A(a×n)(n) — Aaaa3 ≠ !Aa3.) The stored form is the base [10] plus the cascade's ordinal rows; the higher symbols keep the very same array one layer up: @Aa3 (layer 1) = 10{ω^(ω^3)}10, #Aa3 (layer 2) = 10{ω^(ω^(ω^3))}10.
|
|
872
|
+
- The formula !Aaα = 10{ω^int(α)\*frac(α)}10 is only the rule-(v) digit-distribution shorthand: read literally it degenerates at integers (int(1)·frac(1) = 0 gives 10{0}10 = 100), so it must not be used as an executable definition.
|
|
845
873
|
|
|
846
|
-
Then we have !Aa1 = Aa10
|
|
874
|
+
Then we have !Aa1 = Aa10 (the diagonal reading above); the earlier claim "!Aa2 = Aaa10" does not hold — !Aa2 = 10{ω^2}10 while Aaa10 is the compact ω²-marker. Just like the previous letters, any number can be written as !Aaα. Here, it is actually the binary form of !αAaβ = !Aa(β+log₅(α/2)) which has the most intuitive meaning:
|
|
847
875
|
|
|
848
|
-
In terms of the extended arrow operation, β tells us ω^β is in the ordinal and the digits of α tell us its coefficient and what residue ordinals are. Actually, !αAaβ has a more ω^ layer compare to αAaβ in ordinal level. For example, !2.0000Aa4 = 10{ω^4}10 and 2.0000Aa4 = 10{4}10
|
|
876
|
+
In terms of the extended arrow operation, β tells us ω^β is in the ordinal and the digits of α tell us its coefficient and what residue ordinals are. Actually, !αAaβ has a more ω^ layer compare to αAaβ in ordinal level. For example, !2.0000Aa4 = !Aa4 = 10{ω^4}10 and 2.0000Aa4 = 10{4}10 (α = 2 contributes log₅(2/2) = 0, so the two spellings coincide)
|
|
849
877
|
|
|
850
878
|
And in terms of ordinals, β gives us the maximum power of ω and the digits of α give us the coefficents of the various powers of ω, these neat relations are also true for β=1 and α≥2.
|
|
851
879
|
|
|
@@ -997,17 +1025,18 @@ Every hyperoperation is stored EXACTLY while it fits the array budget and approx
|
|
|
997
1025
|
|
|
998
1026
|
# Changelog
|
|
999
1027
|
|
|
1000
|
-
|
|
1001
|
-
- 2026-
|
|
1002
|
-
- 2026-9-
|
|
1003
|
-
- 2026-9-
|
|
1004
|
-
- 2026-
|
|
1005
|
-
- 2026-
|
|
1006
|
-
- 2026-7-
|
|
1007
|
-
- 2026-
|
|
1008
|
-
- 2026-
|
|
1009
|
-
- 2026-
|
|
1010
|
-
- 2026-2-
|
|
1011
|
-
- 2026-2-
|
|
1012
|
-
- 2026-2-
|
|
1028
|
+
- 2026-10-18 v2.1.1 Fix: round-trip @Aa1/#Aa1 and alpha-Gamma sub-unit forms; fix(format): exact token form for non-integer multi-a layers and past multiLetterLimit
|
|
1029
|
+
- 2026-10-16 v2.1.0 Add hardy(x, base) and FGH(x, base), fix issue #15, #17, #19, #20, #21, #22
|
|
1030
|
+
- 2026-9-30 v2.0.2 Fix a lot of bugs e.g. hardy(non integer > 1000) throwing, hardy beyond the 1.8e308 range fails, format of "ω^n\*large numbers" fails, some FORMAT_OPTIONS not take effect.
|
|
1031
|
+
- 2026-9-25 v2.0.1 Fix arrow(x,y,y) not being monotone in y and array except array[0][0] may be non-integer
|
|
1032
|
+
- 2026-9-15 v2.0.0 Add hyper-root & hyper-log, hardy function, fractional hyperoperation inputs, fix BEAF operation level and format
|
|
1033
|
+
- 2026-8-18 v1.4.0 Support hyper operation >MSI and fix format-metanum bugs
|
|
1034
|
+
- 2026-7-31 v1.3.0 Add format-metanum.js, fix basic operations, hyper operations and BEAF bugs
|
|
1035
|
+
- 2026-7-9 v1.2.0 Add more hyper operations up to ε₀, add BEAF operation and fix bugs
|
|
1036
|
+
- 2026-6-3 v1.1.0 Add support for very small numbers ,add more hyper operations and fix bugs
|
|
1037
|
+
- 2026-5-23 v1.0.0 Rewritten and add even more hyper operations
|
|
1038
|
+
- 2026-2-24 v0.4.0 Add hyper operations and extend fromString
|
|
1039
|
+
- 2026-2-11 v0.3.0 Reconstruct code and correct calculating functions
|
|
1040
|
+
- 2026-2-6 v0.2.0 New Metanum data structure with Cantor normal form
|
|
1041
|
+
- 2026-2-1 v0.1.0 First commit
|
|
1013
1042
|
|