Guardian Native C Library Calls Reference Manual (G06.28+, H06.04+)
Guardian Native C Library Calls (n - r) pow(3)
• If the value of y is NaN, NaN is returned.
• If the value of x is 0.0 (zero) and the value of y is negative, positive or negative
HUGE_VAL is returned and errno is set to [EDOM].
• If the value of x is 0.0 (zero) and the value of y is greater than 0.0 (zero), positive or
negative 0.0 (zero) is returned.
• If the value of x is less than 0.0 (zero) and the value of y is not an integral value, NaN is
returned and errno is set to [EDOM].
• If the absolute value of x is greater than 1.0 and the value of y is positive infinity, posi-
tive infinity is returned.
• If the absolute value of x is less than 1.0 and the value of y is positive infinity, positive
0.0 (zero) is returned.
• If the absolute value of x is greater than 1.0 and the value of y is negative infinity, posi-
tive 0.0 (zero) is returned.
• If the absolute value of x is less than 1.0 and the value of y is negative infinity, positive
infinity is returned.
• If the value of x is positive infinity and the value of y is greater than 0.0 (zero), positive
infinity is returned.
• If the value of x is positive infinity and the value of y is less than 0.0 (zero), positive 0.0
(zero) is returned.
• If the value of x is negative infinity and the value of y is an odd integral value greater
than 0.0 (zero), negative infinity is returned.
• If the value of x is negative infinity and the value of y is not an odd integral value but is
greater than 0.0 (zero), positive infinity is returned.
• If the value of x is negative infinity and the value of y is an odd integral value less than
0.0 (zero), negative 0.0 (zero) is returned.
• If the value of x is negative infinity and the value of y is not an odd integral value but is
less than 0.0 (zero), positive 0.0 (zero) is returned.
• If the value of x is positive or negative 1.0 and the value of y is positive or negative
infinity, NaN is returned and errno is set to [EDOM].
• If the value of x is a finite value less than 0.0 (zero) and the value of y is a finite nonin-
tegral value, NaN is returned and errno is set to [EDOM].
• If the value of x is positive or negative 0.0 (zero) and the value of y is an odd integral
value less than 0.0 (zero), positive or negative infinity is returned and errno is set to
[EDOM].
• If the value of x is positive or negative 0.0 (zero) and the value of y is not an odd integral
value but is less than 0.0 (zero), positive infinity is returned and errno is set to [EDOM].
• If the value of x is positive or negative 0.0 (zero) and the value of y is an odd integral
value greater than 0.0 (zero), positive or negative 0.0 (zero) is returned.
527192-005 Hewlett-Packard Company 5−23