Skip to content

Commit

Permalink
α 1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Naruyoko committed May 23, 2020
1 parent 2e84f8b commit 746df74
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ExpantaNum.js
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@
if (payload.neq(ExpantaNum.ONE)) other=other.add(payload.slog(t));
if (ExpantaNum.debug>=ExpantaNum.NORMAL) console.log(t+"^^"+other);
var negln;
if (t.isNaN()||other.isNaN()||payload.isNaN()) return ExpantaNum.NaN.clone()
if (other.isInfinite()&&other.sign>0){
if (t.gte(Math.exp(1/Math.E))) return ExpantaNum.POSITIVE_INFINITY.clone();
//Formula for infinite height power tower.
Expand Down Expand Up @@ -893,7 +894,13 @@
other=new ExpantaNum(other);
var r;
if (ExpantaNum.debug>=ExpantaNum.NORMAL) console.log(t+"{"+arrows+"}"+other);
if (t.isNaN()||other.isNaN()) return ExpantaNum.NaN.clone()
if (other.lt(ExpantaNum.ZERO)) return ExpantaNum.NaN.clone();
if (t.eq(ExpantaNum.ZERO)){
if (other.eq(ExpantaNum.ONE)) return ExpantaNum.ZERO.clone();
return ExpantaNum.NaN.clone();
}
if (t.eq(ExpantaNum.ONE)) return ExpantaNum.ONE.clone();
if (other.eq(ExpantaNum.ZERO)) return ExpantaNum.ONE.clone();
if (other.eq(ExpantaNum.ONE)) return t.clone();
if (arrows.gt(ExpantaNum.MAX_SAFE_INTEGER)){
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) ![2](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/2.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) ![3](https://raw.githubusercontent.com/Naruyoko/ExpantaNum.js/non-code/3.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.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`.

# α 1.3.2 - 2020/05/20
* Fixed freeze on processing numbers such as 10^^^^^^^10.

Expand Down

0 comments on commit 746df74

Please sign in to comment.