s_mathInfinity
global · crt
- Address
0x82f4d0· 8 bytes, up to0x82f4d7- Type
double- Meaning
- Holds +inf, the value the math routines return for an overflow or an infinite answer
- Confidence
- verified, proof one
- Finding
- crt/math#non-finite-powers
Finding: Non-finite powers in crt: math routines
__CIpow (0x73f940) stores the base and the exponent as doubles and enters its second entry,
0x73f962, which no row holds. When either is a NaN the answer is that NaN, quiet, from faddp of
the two (of two NaNs the larger significand), with errno 33. When either is an infinity,
__powhlp (0x744c8c) answers by the table below, y being the exponent; a 1 from it sets
errno to 33, the answer kept.
| base | y = +inf | y = −inf | other y |
|---|---|---|---|
| |x| > 1 | +inf | +0 | |
| |x| < 1, zero | +0 | +inf | |
| |x| = 1 | indefinite, 1 | indefinite, 1 | |
| +inf | +inf for y > 0, 1 for 0, +0 for y < 0 | ||
| −inf | y > 0: −inf if y is odd, else +inf; y < 0: −0 if odd, else +0; y = 0: 1 |
The derivation is in the doc.