Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- Fix error in Power#e2ApfloatArg() method numerical high precision
evaluation
- #206
  • Loading branch information
axkr committed Dec 9, 2020
1 parent 681d140 commit aac80f0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3453,6 +3453,11 @@ private static IExpr e2ApcomplexArg(final ApcomplexNum base, final ApcomplexNum
}

private static IExpr e2ApfloatArg(final ApfloatNum base, final ApfloatNum exponent) {
if (exponent.sign() < 0) {
ApcomplexNum b=base.apcomplexNumValue(base.precision());
ApcomplexNum e=exponent.apcomplexNumValue(base.precision());
return b.pow(e);
}
return base.pow(exponent);
}

Expand Down

0 comments on commit aac80f0

Please sign in to comment.