A huge number library holding up to {10,9e15,1,2}.
This reaches level fω+1, which the operation expansion also is at, hence the name.
Internally, it is represented as an sign, array, and layer. Sign is 1 or -1. Array is [[a0,b0],[a1,b1],[a2,b2],[a3,b3],...]. Layer is a non-negative integer. They together represents sign*JlayertopLayer, where Jx is 10{x}10 (PsiCubed2's Letter notation), and topLayer is:
- (...(10↑a3)b3(10↑a2)b2(10↑a1)b1b0) if a0=0.
- (...(10↑a3)b3(10↑a2)b2(10↑a1)b1(10↑a0)b010) otherwise.
For detailed explanation and documentation, see here.
Functions are as follows: abs, neg, cmp, gt, gte, lt, lte, eq, neq, min, max, ispos, isneg, isNaN, isFinite, isint, floor, ceiling, round, add, sub, mul, div, rec, mod, gamma, fact, pow, exp, sqrt, cbrt, root, log10, logBase, log(alias ln), lambertw, tetr, iteratedexp, iteratedlog, layeradd, layeradd10, ssrt, slog, pent, arrow, chain, hyper, expansion, affordGeometricSeries, affordArithmeticSeries, sumGeometricSeries, sumArithmeticSeries, choose
. Of course, there are toNumber()
, toString()
(toValue
, toStringWithDecimalPlaces
, toExponential
, toFixed
, toPrecision
), and toJSON()
. Add one of a kind toHyperE()
.
If you are using built-in constants: Constants can not be replaced directly, however the properties of it can. As the constants are also used inside ExpantaNum.js, modifying them could CAUSE SERIOUS ISSUES AND POTENTIALLY RENDER THE LIBRARY UNUSABLE.
If you are not planning to make something to the scale of True Infinity, then use other libraries, such as, in ascending order:
- break_infinity.js by Patashu - e9e15
- decimal.js by MikeMcl - e9e15
- logarithmica_numerus_lite.js by Aarex Tiaokhiao - e1.8e308
- confractus_numerus.js by Aarex Tiaokhiao - ee9e15
- magna_numerus.js by Aarex Tiaokhiao - ?
- break_eternity.js by Patashu - 10^^1.8e308
- OmegaNum.js by Naruyoko (me) - 10{9e15}10
Future ideas:
ExpantaNum.js - fω+1, array of value-index pair with separate counter.- OmegaExpantaNum.js - fω2
- MegotaNum.js - fω2
- PowiainaNum.js - fω3
- GodgahNum.js - fωω
number library, big number, big num, bignumber, bignum, big integer, biginteger, bigint, incremental games, idle games, large numbers, huge numbers, googology, javascript