metanum 1.0.0 → 1.1.0

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 CHANGED
@@ -1,6 +1,8 @@
1
1
  # MetaNum
2
2
 
3
- - MetaNum v1.0 by dlsdl
3
+ [![NPM](https://img.shields.io/npm/v/metanum.svg)](https://www.npmjs.com/package/metanum)
4
+
5
+ - MetaNum v1.1 by dlsdl
4
6
 
5
7
  A huge number library holding up to X↑↑X&9e15.
6
8
 
@@ -29,8 +31,8 @@ const b = MetaNum.fromNumber(-3.14);
29
31
  const c = new MetaNum("1.5e308");
30
32
  const d = MetaNum.fromString("10^^5"); // tetration: 10^^5
31
33
  const e = MetaNum.fromString("E100#2"); // Hyper-E: 10^10^100 (googolplex)
32
- const f = MetaNum.fromString("GF^2E^3 123"); // letter notation
33
- const g = MetaNum.fromString("F3 100"); // GF^2E^3 = 10↑↑↑10↑↑10↑↑10↑10↑10↑123
34
+ const f = MetaNum.fromString("GF^2 E^3 123"); // letter notation
35
+ const g = MetaNum.fromString("Aa100"); // letter notation
34
36
  const h = MetaNum.fromString("[[10], [1, 3]]"); // bracket notation
35
37
 
36
38
  // From an array
@@ -51,17 +53,8 @@ const n = MetaNum.fromHyperE("EE100");
51
53
  ## Constants
52
54
 
53
55
  ```javascript
54
- MetaNum.ZERO // 0
55
- MetaNum.ONE // 1
56
- MetaNum.TWO // 2
57
- MetaNum.TEN // 10
58
- MetaNum.E // Math.E
59
- MetaNum.LN2 // Math.LN2
60
- MetaNum.LN10 // Math.LN10
61
- MetaNum.PI // π
62
- MetaNum.SQRT2 // √2
63
56
  MetaNum.MAX_SAFE_INTEGER // 9007199254740991
64
- MetaNum.NaN // NaN
57
+ MetaNum.E_
65
58
  MetaNum.POSITIVE_INFINITY // Infinity
66
59
  MetaNum.NEGATIVE_INFINITY // -Infinity
67
60
  MetaNum.GRAHAMS_NUMBER // Graham's number (approximation)
@@ -561,8 +554,6 @@ The Definiton of more symbols is similar to the definition of @Aa.
561
554
 
562
555
  $Aa \~ f\_ω^ω^ω^ω^ω\_(10)
563
556
 
564
- And there are more symbols : % & \~ < > ? and symbol combinations like !!, !@, !#, @!.
565
-
566
557
  Then we can define (the β-th symbol or symbol combination)Aa = f\_ω^ω^...^ω(β+1 ω's)\_(10)
567
558
 
568
559
  ### Definition of the final letter: ε
@@ -575,6 +566,7 @@ Then we can define (the β-th symbol or symbol combination)Aa = f\_ω^ω^...^ω(
575
566
 
576
567
  ## Update log
577
568
 
569
+ - 2026-6-3 v1.1 Add support for very small numbers ,add more hyper operations and fix bugs
578
570
  - 2026-5-23 v1.0 Rewritten and add even more hyper operations
579
571
  - 2026-2-24 v0.4 Add hyper operations and extend fromString
580
572
  - 2026-2-11 v0.3 Reconstruct code and correct calculating functions