Correctly rounded posit trigonometric operations #
Each finite input is decoded exactly. A prepared comparator then compares the mathematical
function value with posit rounding boundaries, sharing its enclosure data across the search.
Only the final result is rounded. Inverse sine and cosine reject inputs outside [-1, 1];
all six operations propagate NaR.
The radian functions and principal branches follow the Posit Standard (2022), §5.5.
Round using a prepared comparator, propagating NaR.
An exact comparator gives the real rounding contract in evaluate_eq_real.
Instances For
Check the closed real domain of inverse sine or cosine before preparing its comparator.
Instances For
Correctly rounded sine of a radian argument. NaR propagates.
Instances For
Correctly rounded cosine of a radian argument. NaR propagates.
Instances For
Correctly rounded tangent. A finite posit, being rational, is never a radian tangent pole.
Instances For
Inverse sine on its principal branch [-π/2, π/2]; invalid inputs produce NaR.
Instances For
Inverse cosine on its principal branch [0, π]; invalid inputs produce NaR.
Instances For
Correctly rounded inverse tangent on its principal branch (-π/2, π/2).