5.6. Power Functions

5.6.1. The pow function

Synopsis
#include <math.h>

double pow (double x , double y );

Description

The pow function computes x raised to the power y. A domain error occurs if x is negative and y is not an integral value. A domain error occurs if the result cannot be represented when x is zero and y is less than or equal to zero. A range error may occur.

Returns

The pow function returns the value of x raised to the power y.

Implementation Notes

None.

5.6.2. The sqrt function

Synopsis
#include <math.h>

double sqrt (double x );

Description

The sqrt function computes the non-negative square root of x. A domain error occurs if the argument is negative.

Returns

The sqrt function returns the value of the square root.

Implementation Notes