Skip to content

Commit

Permalink
Merge pull request #29 from JPZEBRA/revision
Browse files Browse the repository at this point in the history
Update FloatedBigDigit.js
  • Loading branch information
JPZEBRA authored May 21, 2021
2 parents b20c90e + 5219071 commit fecf148
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions lib/FloatedBigDigit.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* FLOATED BIG DIGIT CLASS */
/* CREATE 2021.02.06 */
/* REVISED 2021.05.21 */
/* Ver 0.8.5 */
/* REVISED 2021.05.22 */
/* Ver 0.8.6 */
/* Original by K-ARAI */


Expand Down Expand Up @@ -2568,7 +2568,6 @@ function FloatedBigDigit() {

var stop = ( C.compare(floatedBigDigit_LM2)>=0 );


this.set(1);
while(C.compare(1)>0) {
this.Mul(F);
Expand Down Expand Up @@ -3263,8 +3262,6 @@ function FloatedBigDigit() {

if(this.checkOver()) return floatedBigDigitERR;

if(stop) return floatedBigDigitERR;

return floatedBigDigitOK;

}
Expand All @@ -3290,6 +3287,8 @@ function FloatedBigDigit() {
return floatedBigDigitERR;
}

if(F.order()<-floatedBigDigit_order*4/10) return this.SetAsinhB(V);

var C = new FloatedBigDigit();
C.set(0);
this.set(1);
Expand Down Expand Up @@ -3348,8 +3347,6 @@ function FloatedBigDigit() {

if(this.checkOver()) return floatedBigDigitERR;

if(stop) return floatedBigDigitERR;

return floatedBigDigitOK;

}
Expand Down Expand Up @@ -3380,10 +3377,12 @@ function FloatedBigDigit() {

F.Div(A);

F.add(1);

B.Copy(V);
B.minus = false;

if(F.isOver()) F.Copy(B);

F.add(1);
F.Add(B);

this.SetLn(F);
Expand Down Expand Up @@ -3424,6 +3423,8 @@ function FloatedBigDigit() {
return floatedBigDigitERR;
}

if(F.order()<-floatedBigDigit_order*4/10) return this.SetAcoshB(V);

var C = new FloatedBigDigit();
C.set(0);
this.set(1);
Expand Down Expand Up @@ -3513,6 +3514,8 @@ function FloatedBigDigit() {
B.set(2);
A.PowerDiv(B);

if(A.isOver()) A.Copy(V);

A.Add(V);

this.SetLn(A);
Expand Down

0 comments on commit fecf148

Please sign in to comment.