You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To keep the modified code functioning as the old code, I also use mpmath.workprec(self.precision), also in bits. However, mpmath does provide mpmath.workdps, using decimal precision.
I just found that what we used before, i.e.,
bigfloat.precision(self.precision)
, equivalent tobigfloat.Context(precision=self.precision)
, isTo keep the modified code functioning as the old code, I also use
mpmath.workprec(self.precision)
, also in bits. However,mpmath
does providempmath.workdps
, using decimal precision.In general, the number of bits can be converted to decimal digits by multiplying it by
ln(2)/ln(10) ~= 0.3
. I think we should notice the users in doc, to let them know what precision we are using.The text was updated successfully, but these errors were encountered: