C Reference function frexp()

Usage of frexp():

double frexp(double x, int *exponent);

Parameters:

The floating-point number x is broken up into a mantissa and exponent.The returned value is the mantissa and the integer pointed to by exponent is the exponent. The resultant value is x=mantissa * 2^exponent.

Return value:

The mantissa is in the range of .5 (inclusive) to 1 (exclusive)

Source code example of frexp():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function frexp()


C Reference function exp()

Usage of exp():

double exp(double x);

Parameters:

There is no range limit on the argument.

Return value:

There is no range limit on the return value.

Source code example of exp():

More »


Posted in C Reference math.h Functions | 2 Comments


C Reference function tan()

Usage of tan():

double tan(double x);

Parameters:

There is no range limit on the argument.

Return value:

There is no range limit on the return value.

Source code example of tan():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function tan()


C Reference function tanh()

Usage of tanh():

double tanh(double x);

Parameters:

The value of x has no range.

Return value:

The returned value is in the range of -1 to +1 (inclusive.)

Source code example of tanh():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function tanh()


C Reference function sin()

Usage of sin():

double sin(double x);

Parameters:

The value of x has no range.

Return value:

The returned value is in the range of -1 to +1 (inclusive).

Source code example of sin():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function sin()


C Reference function sinh()

Usage of sinh():

double sinh(double x);

Parameters:

There is no range limit on the argument.

Return value:

There is no range limit on the return value.

Source code example of sinh():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function sinh()


C Reference function cosh()

Usage of cosh():

double cosh(double x);

Parameters:

There is no range limit on the argument.

Return value:

There is no range limit return value. More »


Posted in C Reference math.h Functions | Comments Off on C Reference function cosh()


C Reference function cos()

Usage of cos():

double cos(double x);

Parameters:

The value of x has no range.

Return value:

The returned value is in the range of -1 to +1 (inclusive).

Source code example of cos():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function cos()


C Reference function atan2()

Usage of atan2():

double atan2(double y, double x);

Parameters:

Both y and x cannot be zero.

Return value:

Arc tangent in radians of y/x based on the signs of both values
to determine the correct quadrant. The returned value is in the range of -p/2 to +p/2 (inclusive).

Source code example of atan2():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function atan2()


C Reference function atan()

Usage of atan():

double atan(double x);

Parameters:

The value of x has no range.

Return value:

The returned value is in the range of -p/2 to +p/2 (inclusive).

Source code example of atan():

More »


Posted in C Reference math.h Functions | Comments Off on C Reference function atan()