Manpage of POW

Google
Web www.fiveanddime.net

POW

Section: NEWLIB (3)
Updated: 2005 Feb 23
Index Return to Main Contents
 

NAME

1.23 `pow', `powf'--x to the power y

 

SYNOPSIS


     #include <math.h>
     double pow(double X, double Y);
     float pow(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 libm library. The full documentation for libm is maintained as a Texinfo manual. If info and libm are properly installed at your site, the command
info libm

will give you access to the complete manual.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURNS
PORTABILITY
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 21:25:29 GMT, May 16, 2005



www.fiveanddime.net








Google
Web www.fiveanddime.net