Machine precision parameters

23 views
Skip to first unread message

Ken

unread,
Apr 10, 2012, 7:51:05 PM4/10/12
to mpmath
Is there a way to get various machine precision parameters for the
currrent precision in mpmath? I know these parameters can be queried
for standard precision Python using the sys module. For mpmath, I
know you can get eps, digits, and precision, but is there a way to get
other values like Huge, Tiny, Minexponent, Maxexponent, etc.?

Ken

Vinzent Steinberg

unread,
Apr 12, 2012, 4:23:30 AM4/12/12
to mpmath
Please note that exponents in mpmath are Python (or GMP) longs, which
means they are basically unlimited in size. The precision only affects
the mantissa. Because of this, values like Minexponent don't make
sense.

I hope this helps,
Vinzent
Reply all
Reply to author
Forward
0 new messages