Rational approximation of the sign on a dyadic interval #
The normalized difference of the two reflected evaluations of the integer
sign product is exact at zero. For nonzero inputs of magnitude between
2 ^ B and its reciprocal, the error is at most 2 / 3 ^ (2 * s).
The denominator is positive everywhere by the sign product bound.
Adapted from RationalSignProduct and RationalSignError in lean-canny at
commit 970f28a5ecefc1327402ade16c068aa4b1b2c183.
Approximate the sign by the difference of the reflected product values divided by their sum.
@[simp]
The normalized difference is zero at the origin.