Skip to content

Commit

Permalink
Address exp's accuracy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
peteroupc committed Jul 31, 2020
1 parent d23aec8 commit 5c5676c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Numbers/PeterO/Numbers/RadixMath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ internal class RadixMath<T> : IRadixMath<T> {
// DebugUtility.Log("fracpart1=" + fracpart);
EInteger workingPrec = ctxdiv.Precision;
workingPrec = workingPrec.Add(
this.WorkingDigits(EInteger.FromInt32(20)));
this.WorkingDigits(EInteger.FromInt32(40)));
// DebugUtility.Log("intpart=" + intpart + " wp=" + workingPrec);
thisValue = this.ExpInternal(fracpart, workingPrec, ctxdiv);
// DebugUtility.Log("thisValue=" + thisValue);
Expand Down

0 comments on commit 5c5676c

Please sign in to comment.