![]() |
UNSIGNED_INF | Constant (Pseudo-constant) |
math.h, timath.h |
Represents an infinite quantity.
UNSIGNED_INF
represents a quantity which is known to be infinite in magnitude, but
when nothing can be deduced about its sign. For example, dividing of non-zero number
with "standard" zero (i.e. with UNSIGNED_ZERO) or calculating
tangent of pi/2 will produce such value. TIOS mathematical functions are much
more limited in working with unsigned than with signed infinities (like
POSITIVE_INF). For example, arc tangent of POSITIVE_INF
is
well defined and equals to pi/2, but arc tangent of UNSIGNED_INF
is not unique determined.
Although UNSIGNED_INF
is a much more "concrete"
quantity than NAN, TIOS very often does not make any difference
between these two quantities. To check whether a value is an unsigned infinity or
NAN, use is_uinf_or_nan. If it is,
then you can use is_nan for checking whether a value is NAN,
and if it it not, it must be an unsigned infinity. UNSIGNED_INF
belongs to the
class of "transfinite" numbers (see is_transfinite).