Skip to content

A JavaScript library that handles arithmetic for numbers as large as {10,9e15,1,2}.

License

Notifications You must be signed in to change notification settings

Naruyoko/ExpantaNum.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ExpantaNum.js α 1 . 4 . 0

NPM 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:

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

About

A JavaScript library that handles arithmetic for numbers as large as {10,9e15,1,2}.

Resources

License

Stars

Watchers

Forks

Packages

No packages published