powiaina_num.js 0.1.6 → 0.1.7

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/PowiainaNum.d.ts CHANGED
@@ -206,6 +206,9 @@ export default class PowiainaNum {
206
206
  static maximum(x: PowiainaNumSource, other: PowiainaNumSource): PowiainaNum;
207
207
  static max(x: PowiainaNumSource, other: PowiainaNumSource): PowiainaNum;
208
208
 
209
+ toNumber(): number;
210
+
211
+ overflow(start:PowiainaNumSource, power:PowiainaNumSource,meta:PowiainaNumSource): PowiainaNum;
209
212
  clone(): PowiainaNum;
210
213
 
211
214
 
package/PowiainaNum.js CHANGED
@@ -842,6 +842,20 @@
842
842
  Q.pent = Q.pentate = function (x, other) {
843
843
  return PowiainaNum.arrow(x, 3, other);
844
844
  }
845
+
846
+
847
+ P.overflow = function(start, power, meta = 1) {
848
+ var number = this.clone()
849
+ var power1 = new PowiainaNum(power)
850
+ var meta1 = new PowiainaNum(meta)
851
+ var start1 = new PowiainaNum(start)
852
+ if(number.gte(start1)) {
853
+ var s = start1.iteratedlog(10, meta1)
854
+ number = E(10).iteratedexp(meta1, number.iteratedlog(10, meta1).div(s).pow(power1).mul(s));
855
+ }
856
+ return number
857
+ }
858
+
845
859
  /**
846
860
  *
847
861
  * @param {Number|PowiainaNum|String} other arrow count
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "powiaina_num.js",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "A JavaScript library that handles arithmetic for numbers as large as {10,9e15,1,1,1,2}.",
5
5
  "main": "PowiainaNum.js",
6
6
  "module": "PowiainaNum.esm.js",