Inversion for dyadic numbers #
Inverts a dyadic number at a given (maximum) precision.
Returns the greatest dyadic number with precision at most prec which is less than or equal to 1/x.
For x = 0, returns 0.
Instances For
For a positive dyadic x, 1 < (invAtPrec x prec + 2^(-prec)) * x.