#include <math.h>
double
exp
(double x
);
The exp function computes the exponential function of x. A range error occurs if the magnitude of x is too large.
The exp function returns the exponential value.
#include <math.h>
double
frexp
(double
value , int * exp
);
The frexp function breaks a floating-point number into a normalized fraction and an integral power of 2. It stores the integer in the int object pointed to by exp.
The frexp function returns the value x, such that x is a double with magnitude in the interval [1/2,1] or zero, and value equals x times 2 raised to the power *exp. If value is zero, both parts of the result are zero.
#include <math.h>
double
ldexp
(double x ,
int exp );
The ldexp function multiplies a floating point number by an integral power of 2. A range error may occur.
The ldexp function returns the value of x times 2 raised to the power exp.
None.
#include <math.h>
double
log
(double x
);
The log function computes the natural logarithm of x. A domain error occurs is the argument is negative. A range error may occur if the argument is zero.
The log function returns the natural logarithm.
If the argument is zero, then errno is set to ERANGE, and -HUGE_VAL is returned.
If the argument < zero, then errno is set to EDOM, and -HUGE_VAL is returned.
#include <math.h>
double
log10
(double x
);
The log10 function computes the base-ten logarithm of x. A domain error occurs if the argument is negative. A range error may occur if the argument is zero.
The log10 function returns the base-ten logarithm.
The log10 function is computed by log10 (e) * log (x).
If the argument is zero, then errno is set to ERANGE, and -HUGE_VAL is returned.
If the argument < zero, then errno is set to EDOM, and -HUGE_VAL is returned.
#include <math.h>
double
modf
(double
value , double * iptr
);
The modf function breaks the argument value into integral and fraction parts, each of which has the same sign as the argument. It stores the integral part as a double in the object pointed to by iptr.
The modf function returns the signed fraction part of value.
None.