POW(3) NEWLIB POW(3)NAME
1.45 `pow', `powf'--x to the power y
SYNOPSIS
#include <math.h>
double pow(double X, double Y);
float powf(float X, float Y);
DESCRIPTION
`pow' and `powf' calculate X raised to the exponent Y.
RETURNS
On success, `pow' and `powf' return the value calculated.
When the argument values would produce overflow, `pow' returns
`HUGE_VAL' and set `errno' to `ERANGE'. If the argument X passed to
`pow' or `powf' is a negative noninteger, and Y is also not an integer,
then `errno' is set to `EDOM'. If X and Y are both 0, then `pow' and
`powf' return `1'.
You can modify error handling for these functions using `matherr'.
PORTABILITY
`pow' is ANSI C. `powf' is an extension.
SEE ALSO
pow is part of the library. The full documentation for is maintained
as a Texinfo manual. If info and are properly installed at your site,
the command
info
will give you access to the complete manual.
NEWLIB April 2010 POW(3)