powiaina_num.js 0.1.2

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/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "powiaina_num.js",
3
+ "version": "0.1.2",
4
+ "description": "A JavaScript library that handles arithmetic for numbers as large as {10,9e15,1,1,1,2}.",
5
+ "main": "PowiainaNum.js",
6
+ "module": "PowiainaNum.esm.js",
7
+ "scripts": {
8
+ "lint": "eslint ."
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/VeryrrDefine/PowiainaNum.js.git"
13
+ },
14
+ "keywords": [
15
+ "bignum",
16
+ "bignumber",
17
+ "bigdecimal",
18
+ "number",
19
+ "decimal"
20
+ ],
21
+ "author": "VeryrrDefine",
22
+ "license": "MIT",
23
+ "bugs": {
24
+ "url": "https://github.com/VeryrrDefine/PowiainaNum.js/issues"
25
+ },
26
+ "homepage": "https://github.com/VeryrrDefine/PowiainaNum.js#readme",
27
+ "devDependencies": {
28
+ "eslint": "^8.39.0"
29
+ }
30
+ }
package/readme.md ADDED
@@ -0,0 +1,11 @@
1
+ # PowiainaNum.js
2
+
3
+ A JavaScript library that handles arithmetic for numbers as large as {10,9e15,1,1,1,2}.
4
+
5
+ This reaches level f<sub>ω<sup>3</sup>+1</sub>.
6
+
7
+ Internally, it is represented as an sign,layer and array. Sign is 1 or -1. Array is \[n<sub>0</sub>,\[a<sub>0</sub>, a<sub>1</sub>, a<sub>2</sub>, a<sub>3</sub>], \[b<sub>0</sub>, b<sub>1</sub>, b<sub>2</sub>, b<sub>3</sub>], ...]. They together represents {10,{10,...{10,{10,{...{10, n<sub>0</sub>...}...},c<sub>0</sub>,c<sub>2</sub>,c<sub>3</sub>}...,b<sub>0</sub>,b<sub>2</sub>,b<sub>3</sub>},b<sub>0</sub>,b<sub>2</sub>,b<sub>3</sub>}.
8
+ (b<sub>1</sub> is how many {10, ... ,b<sub>0</sub>,b<sub>2</sub>,b<sub>3</sub>}'s )
9
+ Some codes snippet from [ExpantaNum.js by Naruyoko](https://github.com/Naruyoko/ExpantaNum.js)
10
+
11
+ Functions are as follows `abs, neg, add, sub, mul, div, rec, pow, exp, sqrt, cbrt, root, log10, logarithm, logBase, f_lambertw, d_lambertw, lambertw, tetrate, expansion(eps), multiExpansion(mulEps), powerExpansion(powEps), explosion(els), cmp, isFinite, isInfinite, isNaN, iteratedlog, iteratedslog, iteratedexp, pentate, arrow`(some missing items that have not been fully developed)