[SciPy-dev] Machine precision

Travis Oliphant oliphant at ee.byu.edu
Thu Nov 27 14:13:34 CST 2003

Pearu Peterson wrote:
> On Thu, 27 Nov 2003, Nils Wagner wrote:
>>Dear experts,
>>Is it possible to implement eps as a constant (similar to pi or e)
>>representin the precision of the machine in scipy ?
> No, because eps is not an universal constant (such as pi or e) but
> depends on the machine architecture.
> However, scipy provides (calculates) machine constants in 
> scipy_base.machar module.

I think the limits module encapuslates the more basic machar module.

You should probably import limits; e.g.

from scipy_base import limits



-Travis O.

More information about the Scipy-dev mailing list