AngouriMath
WithinHalfPi(AngouriMath.Entity,System.Boolean)
Method (no overloads)
Summary
Whether the argument lies in [-pi/2, pi/2] , or in the open interval
whenclosed is false — the intervals arcsin and
arctan answer in.
when
Remarks
Tested by doubling the argument and comparing against pi rather than by halving pi,
because addition of two EDecimals is exact and division is not. The
comparison is still only as good as the working precision, and an argument that
close to an endpoint is treated as outside the interval — which declines to
rewrite, the safe direction.
because addition of two EDecimals is exact and division is not. The
comparison is still only as good as the working precision, and an argument that
close to an endpoint is treated as outside the interval — which declines to
rewrite, the safe direction.
Angouri © 2019-2023 · Project's repo · Site's repo · Octicons · Transparency · 1953 pages online