Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - these functions operate with objects of type double, also known as http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
These functions operate with objects of type double, also known as
floating-point numbers.  The Intel 8087 processor (and its successor chips)
is commonly used to implement floating-point operations on personal
computers.  Functions ending in "87" pertain to this specific hardware and
should be isolated in programs when portability is a consideration.  The
following functions are defined:

abs
    absolute value of an object of type "int"

acos
    arccosine

acosh
    inverse hyperbolic cosine

asin
    arcsine

asinh
    inverse hyperbolic sine

atan
    arctangent of one argument

atan2
    arctangent of two arguments

atanh
    inverse hyperbolic tangent

bessel
    bessel functions j0, j1, jn, y0, y1, and yn

cabs
    absolute value of complex number

ceil
    ceiling function

_clear87
    clears floating-point status

_control87
    sets new floating-point control word

cos
    cosine

cosh
    hyperbolic cosine

div
    compute quotient, remainder from division of an "int" object

exp
    exponential function

fabs
    absolute value of "double"

floor
    floor function

fmod
    modulus function

_fpreset
    initializes for floating-point operations

frexp
    fractional exponent

hypot
    compute hypotenuse

j0 (see bessel)
    return Bessel functions of the first kind (described under "bessel
    Functions")

j1 (see bessel)
    return Bessel functions of the first kind (described under "bessel
    Functions")

jn (see bessel)
    return Bessel functions of the first kind (described under "bessel
    Functions")

labs
    absolute value of an object of type "long int"

ldexp
    multiply by a power of two

ldiv
    get quotient, remainder from division of object of type "long int"

log
    natural logarithm

log10
    logarithm, base 10

log2
    logarithm, base 2

matherr
    handles error from math functions

max
    return maximum of two arguments

min
    return minimum of two arguments

modf
    get integral, fractional parts of "double"

pow
    raise to power

rand
    random integer

_set_matherr
    specify a math error handler

sin
    sine

sinh
    hyperbolic sine

sqrt
    square root

srand
    set starting point for generation of random numbers using "rand"
    function

_status87
    gets floating-point status

tan
    tangent

tanh
    hyperbolic tangent

y0 (see bessel)
    return Bessel functions of the second kind (described under "bessel")

y1 (see bessel)
    return Bessel functions of the second kind (described under "bessel")

yn (see bessel)
    return Bessel functions of the second kind (described under "bessel")

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson