|
double | round (double x) |
| Returns the integral value that is nearest to x, with halfway cases rounded away from zero. More...
|
|
double | floor (double x) |
| Rounds x downward, returning the largest integral value that is not greater than x. More...
|
|
double | ceil (double x) |
| Rounds x upward, returning the smallest integral value that is not less than x. More...
|
|
double | pow (double base, double exponent) |
| Returns base raised to the power exponent: More...
|
|
double | exp (double x) |
| Returns the base-e exponential function of x, which is e raised to the power x: e^x. More...
|
|
double | fabs (double x) |
| Returns the absolute value of x: |x|. More...
|
|
float | fabsf (float x) |
| Returns the absolute value of x: |x|. More...
|
|
double | sqrt (double x) |
| Returns the square root of x. More...
|
|
float | sqrtf (float x) |
| Returns the square root of x. More...
|
|
int | isinf (double x) |
| Checks if the input value is Infinite (INF). More...
|
|
int | isnan (double x) |
| Checks if the input value is Not A Number (NAN). More...
|
|
double | log10 (double x) |
| Logarithm function in base 10. More...
|
|
double | ln (double x) |
| Natural logarithm function. More...
|
|
double | logx (double x, double y) |
| Logarithm function in base x. More...
|
|
double | modf (double x, double *intpart) |
| Breaks x into an integral and a fractional part, both parts have the same sign as x. More...
|
|
Returns the base-e exponential function of x, which is e raised to the power x: e^x.
- Parameters
-
- Returns
- Exponential value of x.
If the magnitude of the result is too large to be represented by a value of the return type, the function returns HUGE_VAL (or HUGE_VALF or HUGE_VALL) with the proper sign, and an overflow range error occurs and the global variable errno is set to ERANGE.
double pow |
( |
double |
base, |
|
|
double |
exponent |
|
) |
| |
Returns base raised to the power exponent:
- Parameters
-
base | Base value. |
exponent | Exponent value. |
- Returns
- The result of raising base to the power exponent.
If the base is finite negative and the exponent is finite but not an integer value, it causes a domain error. If both base and exponent are zero, it may also cause a domain error on certain implementations. If base is zero and exponent is negative, it may cause a domain error or a pole error (or none, depending on the library implementation). The function may also cause a range error if the result is too great or too small to be represented by a value of the return type.