[Tutor] question about mpmath product expression

Bernd Prager bernd at prager.ws
Mon Feb 2 22:53:59 CET 2009


Does anybody know if there is a precision difference when I use mpmath and
take an expression:

from mpmath import *
mp.dps = 100
mu0 = [mpf('4') * pi * power(10, -7)

rather then:

mu0 = fprod([mpf('4'), pi, power(10, -7)])

?

Thanks,
-- Bernd


More information about the Tutor mailing list