Skip to content

Commit 5c5676c

Browse files
committed
Address exp's accuracy issues
1 parent d23aec8 commit 5c5676c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Numbers/PeterO/Numbers/RadixMath.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1128,7 +1128,7 @@ private T Exp(T thisValue, EContext ctx, EInteger workingPrecision) {
11281128
// DebugUtility.Log("fracpart1=" + fracpart);
11291129
EInteger workingPrec = ctxdiv.Precision;
11301130
workingPrec = workingPrec.Add(
1131-
this.WorkingDigits(EInteger.FromInt32(20)));
1131+
this.WorkingDigits(EInteger.FromInt32(40)));
11321132
// DebugUtility.Log("intpart=" + intpart + " wp=" + workingPrec);
11331133
thisValue = this.ExpInternal(fracpart, workingPrec, ctxdiv);
11341134
// DebugUtility.Log("thisValue=" + thisValue);

0 commit comments

Comments
 (0)