Skip to content

Commit

Permalink
α 1.3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Naruyoko committed May 31, 2020
1 parent 746df74 commit 26f209a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
13 changes: 7 additions & 6 deletions ExpantaNum.js
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@
}
var m=t.max(other);
if (m.gt("10^^^"+MAX_SAFE_INTEGER)) return m;
if (other.gt(ExpantaNum.MAX_SAFE_INTEGER)){
if (m.gt(ExpantaNum.TETRATED_MAX_SAFE_INTEGER)||other.gt(ExpantaNum.MAX_SAFE_INTEGER)){
if (this.lt(Math.exp(1/Math.E))){
negln = t.ln().neg();
return negln.lambertw().div(negln);
Expand Down Expand Up @@ -910,7 +910,7 @@
}
if (other.eq(2)) return t.arrow(arrows-1)(t,depth+1);
if (t.max(other).gt("10{"+arrows.add(ExpantaNum.ONE)+"}"+MAX_SAFE_INTEGER)) return t.max(other);
if (other.gt(ExpantaNum.MAX_SAFE_INTEGER)){
if (t.gt("10{"+arrows+"}"+MAX_SAFE_INTEGER)||other.gt(ExpantaNum.MAX_SAFE_INTEGER)){
if (t.gt("10{"+arrows+"}"+MAX_SAFE_INTEGER)){
r=t.clone();
r.operator(arrows,r.operator(arrows)-1);
Expand Down Expand Up @@ -1494,13 +1494,14 @@
if (!(input.array instanceof Array)) throw Error(invalidArgument+"Expected that property 'array' exists");
if (input.sign!==undefined&&typeof input.sign!="number") throw Error(invalidArgument+"Expected that property 'sign' is Number");
if (input.layer!==undefined&&typeof input.layer!="number") throw Error(invalidArgument+"Expected that property 'layer' is Number");
var x=new ExpantaNum();
return ExpantaNum.fromArray(input.array,input.sign,input.layer);
/*var x=new ExpantaNum();
x.array=[];
for (var i=0;i<input.array.length;i++) x.array.push(temp.push([input.array[i][0],input.array[i][1]]));
for (var i=0;i<input.array.length;i++) x.array.push([input.array[i][0],input.array[i][1]]);
x.sign=Number(input.sign)||1;
x.layer=Number(input.layer)||0;
x.standardize();
return x;
return x;*/
};
Q.fromJSON=function (input){
if (typeof input=="object") return ExpantaNum.fromObject(parsedObject);
Expand Down Expand Up @@ -1565,7 +1566,7 @@
if (a[min][0]==i) return min;
if (a[max][0]==i) return max;
var mid=Math.floor((min+max)/2);
if (a[mid][0]==i){
if (min==mid||a[mid][0]==i){
min=mid;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion ExpantaNum.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ![ExpantaNum.js](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/ExpantaNumJS.png) ![α](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/alpha.png) ![1](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/1.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![3](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/3.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![3](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/3.png)
# ![ExpantaNum.js](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/ExpantaNumJS.png) ![α](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/alpha.png) ![1](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/1.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![3](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/3.png) ![.](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/dot.png) ![4](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/4.png)
[![NPM](https://img.shields.io/npm/v/expanta_num.js.svg)](https://www.npmjs.com/package/expanta_num.js)
A huge number library holding up to {10,9e15,1,2}.

Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# α 1.3.4 - 2020/05/30
* Fixed `a{n}b` for `10{n}MAX_SAFE_INTEGER<a<=10{n+1}MAX_SAFE_INTEGER` and `b<MAX_SAFE_INTEGER`.
* Fixed `toJSON`.

# α 1.3.3 - 2020/05/23
* Fixed `tetr` and up returning non-`NaN` for special cases involving `NaN`.
* Fixed `pent` and up returning `Infinity` for `0{n}Infinity`.
Expand Down

0 comments on commit 26f209a

Please sign in to comment.