pow(3M)pow(3M)NAMEpow(), powf(), powl(), poww(), powq(), pown(), pownf(), pownl(),
pownw(), pownq(), powlln(), powllnf(), powllnl(), powllnw(), powllnq()
- power functions
SYNOPSIS
HP Integrity Server Only
DESCRIPTION
The function returns
is a version of it takes arguments and returns a result.
Integrity Server Only
is a version of it takes arguments and returns a result.
is an version of it takes arguments and returns an result.
is equivalent to on HP-UX systems.
The function returns
is a version of it takes a first argument and returns a result.
is a version of it takes a first argument and returns a result.
is an version of it takes an first argument and returns an result.
is equivalent to on HP-UX systems.
The function returns
is a version of it takes a first argument and returns a result.
is a version of it takes a first argument and returns a result.
is an version of it takes an first argument and returns an result.
is equivalent to on HP-UX systems.
USAGE
To use these functions, compile either with the default option or with
the and options.
To use (for Integrity servers) or compile also with the option.
To use any of these functions, make sure your program includes and link
in the math library by specifying on the compiler or linker command
line.
For more information, see the at the following site:
PA-RISC Only
Millicode versions of the function are available. Millicode versions
of math library functions are usually faster than their counterparts in
the standard library. To use these versions, compile your program with
the or the optimization option.
For special cases, the millicode versions return the same values as
their standard library counterparts, but do not set errno. (See the
section.)
RETURN VALUE
Integrity System
For Integrity servers, the function follows the C99 specification for
special cases:
and raises the divide-by-zero floating-point exception for y an odd
integer < 0.
returns +Inf and raises the divide-by-zero floating-point exception for
y<0 and not an odd integer.
for y an odd integer > 0.
returns +0 for y>0 and not an odd integer.
returns 1.
returns 1 for any x, even a NaN.
returns 1 for any x, even a NaN.
returns a NaN and raises the invalid floating-point exception for
finite x<0 and finite non-integer y.
returns +Inf for |x|<1.
returns +0 for |x|>1.
returns +0 for |x|<1.
returns +Inf for |x|>1.
returns -0 for y an odd integer < 0.
returns +0 for y<0 and not an odd integer.
returns -Inf for y an odd integer > 0.
returns +Inf for y>0 and not an odd integer.
returns +0 for y<0.
returns +inf for y>0.
Otherwise, if either argument is a NaN, then returns a NaN.
returns infinity in lieu of a value whose magnitude is too large, and
raises the overflow and inexact exceptions.
raises the underflow and inexact exceptions whenever a result is tiny
(essentially denormal or zero) and thereby suffers loss of accuracy,
and may raise those exceptions if the result is merely tiny.
raises the inexact exception whenever a rounded result does not equal
the mathematical result.
Return values and errno settings for that match the PA-RISC behavior
specified below can be obtained on Integrity servers by compiling with
the option.
The and functions follow the specification for the function in the
applicable special and error cases.
PA-RISC
If x and y are both zero, returns 1.0.
If x or y is NaN, returns NaN.
If x is zero and y is a negative finite number, returns (equal to
−INFINITY).
If x is finite and less than zero and y is finite and not an integer,
returns NaN.
If the correct value would overflow, returns (equal to +/-INFINITY).
ERRORS
If x is zero and y is less than zero, sets to [EDOM].
If x is finite and less than zero and y is finite and not an integer,
sets to [EDOM].
If the correct value would overflow, sets to [ERANGE].
HP-UX functions on Integrity servers do not set by default. For set‐
ting, compile with the option.
SEE ALSOcbrt(3M), compound(3M), cpow(3M), exp(3M), log(3M), scalbln(3M),
scalbn(3M), sqrt(3M), math(5).
STANDARDS CONFORMANCE
: SVID3, XPG4.2, ANSI C, ISO/IEC C99 (including Annex F, ``IEC 60559
floating-point arithmetic'')
: ISO/IEC C99 (including Annex F, ``IEC 60559 floating-point arith‐
metic'')
pow(3M)