pint.pulsar_mjd.two_product

pint.pulsar_mjd.two_product(a, b)[source]

Multiple a and b exactly, returning the result as two float64s. The first is the approximate product (with some floating point error) and the second is the error of the float64 product.

Uses the procedure of Shewchuk, 1997, Discrete & Computational Geometry 18(3):305-363 http://www.cs.berkeley.edu/~jrs/papers/robustr.pdf

Returns:

prod, err – Approximate product a * b and the exact floating point error

Return type:

float64