VxWorks Reference Manual : Libraries

mathALib

NAME

mathALib - C interface library to high-level math functions

ROUTINES

acos( ) - compute an arc cosine (ANSI)
asin( ) - compute an arc sine (ANSI)
atan( ) - compute an arc tangent (ANSI)
atan2( ) - compute the arc tangent of y/x (ANSI)
cbrt( ) - compute a cube root
ceil( ) - compute the smallest integer greater than or equal to a specified value (ANSI)
cos( ) - compute a cosine (ANSI)
cosh( ) - compute a hyperbolic cosine (ANSI)
exp( ) - compute an exponential value (ANSI)
fabs( ) - compute an absolute value (ANSI)
floor( ) - compute the largest integer less than or equal to a specified value (ANSI)
fmod( ) - compute the remainder of x/y (ANSI)
infinity( ) - return a very large double
irint( ) - convert a double-precision value to an integer
iround( ) - round a number to the nearest integer
log( ) - compute a natural logarithm (ANSI)
log10( ) - compute a base-10 logarithm (ANSI)
log2( ) - compute a base-2 logarithm
pow( ) - compute the value of a number raised to a specified power (ANSI)
round( ) - round a number to the nearest integer
sin( ) - compute a sine (ANSI)
sincos( ) - compute both a sine and cosine
sinh( ) - compute a hyperbolic sine (ANSI)
sqrt( ) - compute a non-negative square root (ANSI)
tan( ) - compute a tangent (ANSI)
tanh( ) - compute a hyperbolic tangent (ANSI)
trunc( ) - truncate to integer
acosf( ) - compute an arc cosine (ANSI)
asinf( ) - compute an arc sine (ANSI)
atanf( ) - compute an arc tangent (ANSI)
atan2f( ) - compute the arc tangent of y/x (ANSI)
cbrtf( ) - compute a cube root
ceilf( ) - compute the smallest integer greater than or equal to a specified value (ANSI)
cosf( ) - compute a cosine (ANSI)
coshf( ) - compute a hyperbolic cosine (ANSI)
expf( ) - compute an exponential value (ANSI)
fabsf( ) - compute an absolute value (ANSI)
floorf( ) - compute the largest integer less than or equal to a specified value (ANSI)
fmodf( ) - compute the remainder of x/y (ANSI)
infinityf( ) - return a very large float
irintf( ) - convert a single-precision value to an integer
iroundf( ) - round a number to the nearest integer
logf( ) - compute a natural logarithm (ANSI)
log10f( ) - compute a base-10 logarithm (ANSI)
log2f( ) - compute a base-2 logarithm
powf( ) - compute the value of a number raised to a specified power (ANSI)
roundf( ) - round a number to the nearest integer
sinf( ) - compute a sine (ANSI)
sincosf( ) - compute both a sine and cosine
sinhf( ) - compute a hyperbolic sine (ANSI)
sqrtf( ) - compute a non-negative square root (ANSI)
tanf( ) - compute a tangent (ANSI)
tanhf( ) - compute a hyperbolic tangent (ANSI)
truncf( ) - truncate to integer

DESCRIPTION

This library provides a C interface to high-level floating-point math functions, which can use either a hardware floating-point unit or a software floating-point emulation library. The appropriate routine is called based on whether mathHardInit( ) or mathSoftInit( ) or both have been called to initialize the interface.

All angle-related parameters are expressed in radians. All functions in this library with names corresponding to ANSI C specifications are ANSI compatible.

WARNING

Not all functions in this library are available on all architectures. The architecture-specific appendices of the VxWorks Programmer's Guide list any math functions that are not available.

INCLUDE FILES

math.h

SEE ALSO

mathALib, ansiMath, fppLib, floatLib, mathHardLib, mathSoftLib, .br Kernighan & Ritchie: The C Programming Language, 2ndEdition, .pG Architecture-specific Appendices


Libraries : Routines

acos( )

NAME

acos( ) - compute an arc cosine (ANSI)

SYNOPSIS

double acos
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision arc cosine of x in the range 0.0 to pi radians.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

asin( )

NAME

asin( ) - compute an arc sine (ANSI)

SYNOPSIS

double asin
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision arc sine of x in the range -pi/2 to pi/2 radians.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

atan( )

NAME

atan( ) - compute an arc tangent (ANSI)

SYNOPSIS

double atan
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision arc tangent of x in the range -pi/2 to pi/2.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

atan2( )

NAME

atan2( ) - compute the arc tangent of y/x (ANSI)

SYNOPSIS

double atan2
    (
    double y, /* numerator */
    double x  /* denominator */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision arc tangent of y/x in the range -pi to pi.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

cbrt( )

NAME

cbrt( ) - compute a cube root

SYNOPSIS

double cbrt
    (
    double x /* value to compute the cube root of */
    )

DESCRIPTION

This routine returns the cube root of x in double precision.

INCLUDE FILES

math.h

RETURNS

The double-precision cube root of x.

SEE ALSO

mathALib


Libraries : Routines

ceil( )

NAME

ceil( ) - compute the smallest integer greater than or equal to a specified value (ANSI)

SYNOPSIS

double ceil
    (
    double v /* value to return the ceiling of */
    )

DESCRIPTION

Performs a round-to-positive-infinity.

INCLUDE FILES

math.h

RETURNS

The smallest integral value greater than or equal to v, represented in double precision.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

cos( )

NAME

cos( ) - compute a cosine (ANSI)

SYNOPSIS

double cos
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision cosine of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

cosh( )

NAME

cosh( ) - compute a hyperbolic cosine (ANSI)

SYNOPSIS

double cosh
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision hyperbolic cosine of x if the parameter is greater than 1.0, or NaN if the parameter is less than 1.0.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

exp( )

NAME

exp( ) - compute an exponential value (ANSI)

SYNOPSIS

double exp
    (
    double x /* exponent */
    )

DESCRIPTION

This routine returns the exponential value of x -- the inverse natural logarithm (e ** x) -- in double precision.

INCLUDE FILES

math.h

RETURNS

The double-precision exponential value of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

fabs( )

NAME

fabs( ) - compute an absolute value (ANSI)

SYNOPSIS

double fabs
    (
    double v /* number to return the absolute value of */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision absolute value of v.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

floor( )

NAME

floor( ) - compute the largest integer less than or equal to a specified value (ANSI)

SYNOPSIS

double floor
    (
    double v /* value to return the floor of */
    )

DESCRIPTION

Performs a round-to-negative-infinity.

INCLUDE FILES

math.h

RETURNS

The largest integral value less than or equal to v, in double precision.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

fmod( )

NAME

fmod( ) - compute the remainder of x/y (ANSI)

SYNOPSIS

double fmod
    (
    double x, /* numerator */
    double y  /* denominator */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision modulus of x/y with the sign of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

infinity( )

NAME

infinity( ) - return a very large double

SYNOPSIS

double infinity (void)

DESCRIPTION

This routine returns a very large double.

INCLUDE FILES

math.h

RETURNS

The double-precision representation of positive infinity.

SEE ALSO

mathALib


Libraries : Routines

irint( )

NAME

irint( ) - convert a double-precision value to an integer

SYNOPSIS

int irint
    (
    double x /* argument */
    )

DESCRIPTION

This routine converts a double-precision value x to an integer using the selected IEEE rounding direction.

CAVEAT

The rounding direction is not pre-selectable and is fixed for round-to-the-nearest.

INCLUDE FILES

math.h

RETURNS

The integer representation of x.

SEE ALSO

mathALib


Libraries : Routines

iround( )

NAME

iround( ) - round a number to the nearest integer

SYNOPSIS

int iround
    (
    double x /* argument */
    )

DESCRIPTION

This routine rounds a double-precision value x to the nearest integer value.

NOTE

If x is spaced evenly between two integers, it returns the even integer.

INCLUDE FILES

math.h

RETURNS

The integer nearest to x.

SEE ALSO

mathALib


Libraries : Routines

log( )

NAME

log( ) - compute a natural logarithm (ANSI)

SYNOPSIS

double log
    (
    double x /* value to compute the natural logarithm of */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision natural logarithm of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

log10( )

NAME

log10( ) - compute a base-10 logarithm (ANSI)

SYNOPSIS

double log10
    (
    double x /* value to compute the base-10 logarithm of */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision base-10 logarithm of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

log2( )

NAME

log2( ) - compute a base-2 logarithm

SYNOPSIS

double log2
    (
    double x /* value to compute the base-two logarithm of */
    )

DESCRIPTION

This routine returns the base-2 logarithm of x in double precision.

INCLUDE FILES

math.h

RETURNS

The double-precision base-2 logarithm of x.

SEE ALSO

mathALib


Libraries : Routines

pow( )

NAME

pow( ) - compute the value of a number raised to a specified power (ANSI)

SYNOPSIS

double pow
    (
    double x, /* operand */
    double y  /* exponent */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision value of x to the power of y.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

round( )

NAME

round( ) - round a number to the nearest integer

SYNOPSIS

double round
    (
    double x /* value to round */
    )

DESCRIPTION

This routine rounds a double-precision value x to the nearest integral value.

INCLUDE FILES

math.h

RETURNS

The double-precision representation of x rounded to the nearest integral value.

SEE ALSO

mathALib


Libraries : Routines

sin( )

NAME

sin( ) - compute a sine (ANSI)

SYNOPSIS

double sin
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision floating-point sine of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

sincos( )

NAME

sincos( ) - compute both a sine and cosine

SYNOPSIS

void sincos
    (
    double   x,         /* angle in radians */
    double * sinResult, /* sine result buffer */
    double * cosResult  /* cosine result buffer */
    )

DESCRIPTION

This routine computes both the sine and cosine of x in double precision. The sine is copied to sinResult and the cosine is copied to cosResult.

INCLUDE FILES

math.h

RETURNS

N/A

SEE ALSO

mathALib


Libraries : Routines

sinh( )

NAME

sinh( ) - compute a hyperbolic sine (ANSI)

SYNOPSIS

double sinh
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision hyperbolic sine of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

sqrt( )

NAME

sqrt( ) - compute a non-negative square root (ANSI)

SYNOPSIS

double sqrt
    (
    double x /* value to compute the square root of */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision square root of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

tan( )

NAME

tan( ) - compute a tangent (ANSI)

SYNOPSIS

double tan
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision tangent of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

tanh( )

NAME

tanh( ) - compute a hyperbolic tangent (ANSI)

SYNOPSIS

double tanh
    (
    double x /* angle in radians */
    )

DESCRIPTION

INCLUDE FILES

math.h

RETURNS

The double-precision hyperbolic tangent of x.

SEE ALSO

mathALib, Kernighan & Ritchie: The C Programming Language, 2nd Edition


Libraries : Routines

trunc( )

NAME

trunc( ) - truncate to integer

SYNOPSIS

double trunc
    (
    double x /* value to truncate */
    )

DESCRIPTION

This routine discards the fractional part of a double-precision value x.

INCLUDE FILES

math.h

RETURNS

The integer portion of x, represented in double-precision.

SEE ALSO

mathALib


Libraries : Routines

acosf( )

NAME

acosf( ) - compute an arc cosine (ANSI)

SYNOPSIS

float acosf
    (
    float x /* number between -1 and 1 */
    )

DESCRIPTION

This routine computes the arc cosine of x in single precision. If x is the cosine of an angle T, this function returns T.

INCLUDE FILES

math.h

RETURNS

The single-precision arc cosine of x in the range 0 to pi radians.

SEE ALSO

mathALib


Libraries : Routines

asinf( )

NAME

asinf( ) - compute an arc sine (ANSI)

SYNOPSIS

float asinf
    (
    float x /* number between -1 and 1 */
    )

DESCRIPTION

This routine computes the arc sine of x in single precision. If x is the sine of an angle T, this function returns T.

INCLUDE FILES

math.h

RETURNS

The single-precision arc sine of x in the range -pi/2 to pi/2 radians.

SEE ALSO

mathALib


Libraries : Routines

atanf( )

NAME

atanf( ) - compute an arc tangent (ANSI)

SYNOPSIS

float atanf
    (
    float x /* tangent of an angle */
    )

DESCRIPTION

This routine computes the arc tangent of x in single precision. If x is the tangent of an angle T, this function returns T (in radians).

INCLUDE FILES

math.h

RETURNS

The single-precision arc tangent of x in the range -pi/2 to pi/2.

SEE ALSO

mathALib


Libraries : Routines

atan2f( )

NAME

atan2f( ) - compute the arc tangent of y/x (ANSI)

SYNOPSIS

float atan2f
    (
    float y, /* numerator */
    float x  /* denominator */
    )

DESCRIPTION

This routine returns the principal value of the arc tangent of y/x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision arc tangent of y/x in the range -pi to pi.

SEE ALSO

mathALib


Libraries : Routines

cbrtf( )

NAME

cbrtf( ) - compute a cube root

SYNOPSIS

float cbrtf
    (
    float x /* argument */
    )

DESCRIPTION

This routine returns the cube root of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision cube root of x.

SEE ALSO

mathALib


Libraries : Routines

ceilf( )

NAME

ceilf( ) - compute the smallest integer greater than or equal to a specified value (ANSI)

SYNOPSIS

float ceilf
    (
    float v /* value to find the ceiling of */
    )

DESCRIPTION

This routine returns the smallest integer greater than or equal to v, in single precision.

INCLUDE FILES

math.h

RETURNS

The smallest integral value greater than or equal to v, in single precision.

SEE ALSO

mathALib


Libraries : Routines

cosf( )

NAME

cosf( ) - compute a cosine (ANSI)

SYNOPSIS

float cosf
    (
    float x /* angle in radians */
    )

DESCRIPTION

This routine returns the cosine of x in single precision. The angle x is expressed in radians.

INCLUDE FILES

math.h

RETURNS

The single-precision cosine of x.

SEE ALSO

mathALib


Libraries : Routines

coshf( )

NAME

coshf( ) - compute a hyperbolic cosine (ANSI)

SYNOPSIS

float coshf
    (
    float x /* value to compute the hyperbolic cosine of */
    )

DESCRIPTION

This routine returns the hyperbolic cosine of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision hyperbolic cosine of x if the parameter is greater than 1.0, or NaN if the parameter is less than 1.0.

Special cases:
 If x is +INF, -INF, or NaN, coshf( ) returns x.

SEE ALSO

mathALib


Libraries : Routines

expf( )

NAME

expf( ) - compute an exponential value (ANSI)

SYNOPSIS

float expf
    (
    float x /* exponent */
    )

DESCRIPTION

This routine returns the exponential of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision exponential value of x.

SEE ALSO

mathALib


Libraries : Routines

fabsf( )

NAME

fabsf( ) - compute an absolute value (ANSI)

SYNOPSIS

float fabsf
    (
    float v /* number to return the absolute value of */
    )

DESCRIPTION

This routine returns the absolute value of v in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision absolute value of v.

SEE ALSO

mathALib


Libraries : Routines

floorf( )

NAME

floorf( ) - compute the largest integer less than or equal to a specified value (ANSI)

SYNOPSIS

float floorf
    (
    float v /* value to find the floor of */
    )

DESCRIPTION

This routine returns the largest integer less than or equal to v, in single precision.

INCLUDE FILES

math.h

RETURNS

The largest integral value less than or equal to v, in single precision.

SEE ALSO

mathALib


Libraries : Routines

fmodf( )

NAME

fmodf( ) - compute the remainder of x/y (ANSI)

SYNOPSIS

float fmodf
    (
    float x, /* numerator */
    float y  /* denominator */
    )

DESCRIPTION

This routine returns the remainder of x/y with the sign of x, in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision modulus of x/y.

SEE ALSO

mathALib


Libraries : Routines

infinityf( )

NAME

infinityf( ) - return a very large float

SYNOPSIS

float infinityf (void)

DESCRIPTION

This routine returns a very large float.

INCLUDE FILES

math.h

RETURNS

The single-precision representation of positive infinity.

SEE ALSO

mathALib


Libraries : Routines

irintf( )

NAME

irintf( ) - convert a single-precision value to an integer

SYNOPSIS

int irintf
    (
    float x /* argument */
    )

DESCRIPTION

This routine converts a single-precision value x to an integer using the selected IEEE rounding direction.

CAVEAT

The rounding direction is not pre-selectable and is fixed as round-to-the-nearest.

INCLUDE FILES

math.h

RETURNS

The integer representation of x.

SEE ALSO

mathALib


Libraries : Routines

iroundf( )

NAME

iroundf( ) - round a number to the nearest integer

SYNOPSIS

int iroundf
    (
    float x /* argument */
    )

DESCRIPTION

This routine rounds a single-precision value x to the nearest integer value.

NOTE

If x is spaced evenly between two integers, the even integer is returned.

INCLUDE FILES

math.h

RETURNS

The integer nearest to x.

SEE ALSO

mathALib


Libraries : Routines

logf( )

NAME

logf( ) - compute a natural logarithm (ANSI)

SYNOPSIS

float logf
    (
    float x /* value to compute the natural logarithm of */
    )

DESCRIPTION

This routine returns the logarithm of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision natural logarithm of x.

SEE ALSO

mathALib


Libraries : Routines

log10f( )

NAME

log10f( ) - compute a base-10 logarithm (ANSI)

SYNOPSIS

float log10f
    (
    float x /* value to compute the base-10 logarithm of */
    )

DESCRIPTION

This routine returns the base-10 logarithm of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision base-10 logarithm of x.

SEE ALSO

mathALib


Libraries : Routines

log2f( )

NAME

log2f( ) - compute a base-2 logarithm

SYNOPSIS

float log2f
    (
    float x /* value to compute the base-2 logarithm of */
    )

DESCRIPTION

This routine returns the base-2 logarithm of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision base-2 logarithm of x.

SEE ALSO

mathALib


Libraries : Routines

powf( )

NAME

powf( ) - compute the value of a number raised to a specified power (ANSI)

SYNOPSIS

float powf
    (
    float x, /* operand */
    float y  /* exponent */
    )

DESCRIPTION

This routine returns the value of x to the power of y in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision value of x to the power of y.

SEE ALSO

mathALib


Libraries : Routines

roundf( )

NAME

roundf( ) - round a number to the nearest integer

SYNOPSIS

float roundf
    (
    float x /* argument */
    )

DESCRIPTION

This routine rounds a single-precision value x to the nearest integral value.

INCLUDE FILES

math.h

RETURNS

The single-precision representation of x rounded to the nearest integral value.

SEE ALSO

mathALib


Libraries : Routines

sinf( )

NAME

sinf( ) - compute a sine (ANSI)

SYNOPSIS

float sinf
    (
    float x /* angle in radians */
    )

DESCRIPTION

This routine returns the sine of x in single precision. The angle x is expressed in radians.

INCLUDE FILES

math.h

RETURNS

The single-precision sine of x.

SEE ALSO

mathALib


Libraries : Routines

sincosf( )

NAME

sincosf( ) - compute both a sine and cosine

SYNOPSIS

void sincosf
    (
    float   x,         /* angle in radians */
    float * sinResult, /* sine result buffer */
    float * cosResult  /* cosine result buffer */
    )

DESCRIPTION

This routine computes both the sine and cosine of x in single precision. The sine is copied to sinResult and the cosine is copied to cosResult. The angle x is expressed in radians.

INCLUDE FILES

math.h

RETURNS

N/A

SEE ALSO

mathALib


Libraries : Routines

sinhf( )

NAME

sinhf( ) - compute a hyperbolic sine (ANSI)

SYNOPSIS

float sinhf
    (
    float x /* number whose hyperbolic sine is required */
    )

DESCRIPTION

This routine returns the hyperbolic sine of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision hyperbolic sine of x.

SEE ALSO

mathALib


Libraries : Routines

sqrtf( )

NAME

sqrtf( ) - compute a non-negative square root (ANSI)

SYNOPSIS

float sqrtf
    (
    float x /* value to compute the square root of */
    )

DESCRIPTION

This routine returns the non-negative square root of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision square root of x.

SEE ALSO

mathALib


Libraries : Routines

tanf( )

NAME

tanf( ) - compute a tangent (ANSI)

SYNOPSIS

float tanf
    (
    float x /* angle in radians */
    )

DESCRIPTION

This routine returns the tangent of x in single precision. The angle x is expressed in radians.

INCLUDE FILES

math.h

RETURNS

The single-precision tangent of x.

SEE ALSO

mathALib


Libraries : Routines

tanhf( )

NAME

tanhf( ) - compute a hyperbolic tangent (ANSI)

SYNOPSIS

float tanhf
    (
    float x /* number whose hyperbolic tangent is required */
    )

DESCRIPTION

This routine returns the hyperbolic tangent of x in single precision.

INCLUDE FILES

math.h

RETURNS

The single-precision hyperbolic tangent of x.

SEE ALSO

mathALib


Libraries : Routines

truncf( )

NAME

truncf( ) - truncate to integer

SYNOPSIS

float truncf
    (
    float x /* value to truncate */
    )

DESCRIPTION

This routine discards the fractional part of a single-precision value x.

INCLUDE FILES

math.h

RETURNS

The integer portion of x, represented in single precision.

SEE ALSO

mathALib