pow.3m (2010 09)
p
pow(3M) pow(3M)
The pown() and powlln() functions follow the specification for the
pow() function in the applicable
special and error cases.
PA-RISC
If x and y are both zero,
pow()
returns 1.0.
If x or y is NaN,
pow() returns NaN.
If x is zero and y is a negative finite number,
pow() returns −HUGE_VAL (equal to −INFINITY).
If x is finite and less than zero and y is finite and not an integer,
pow() returns NaN.
If the correct value would overflow,
pow() returns ±HUGE_VAL (equal to +/-INFINITY).
ERRORS
If x is zero and y is less than zero,
pow() sets errno to [EDOM].
If x is finite and less than zero and y is finite and not an integer,
pow() sets errno to [EDOM].
If the correct value would overflow,
pow() sets errno to [ERANGE].
HP-UX
libm functions on Integrity servers do not set
errno by default. For errno setting, compile
with the
+Olibmerrno option.
SEE ALSO
cbrt(3M), compound(3M), cpow(3M), exp(3M), log(3M), scalbln(3M), scalbn(3M), sqrt(3M), math(5).
STANDARDS CONFORMANCE
pow() : SVID3, XPG4.2, ANSI C, ISO/IEC C99 (including Annex F, ‘‘IEC 60559 floating-point arith-
metic’’)
powf(), powl() : ISO/IEC C99 (including Annex F, ‘‘IEC 60559 floating-point arithmetic’’)
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3