(3M) - Math library routines

(3M) - Math library routines


Intro
introduction to math library routines

acos
return the arccosine of an argument in radians

acosf
return the arccosine of an argument in radians

acosh
return inverse hyperbolic cosine of argument

acoshf
return inverse hyperbolic cosine of argument

acoshl
return inverse hyperbolic cosine of argument

acosl
return the arccosine of an argument in radians

asin
return the arcsine of an argument in radians

asinf
return the arcsine of an argument in radians

asinh
return inverse hyperbolic sine of argument

asinhf
return inverse hyperbolic sine of argument

asinhl
return inverse hyperbolic sine of argument

asinl
return the arcsine of an argument in radians

atan
return the arctangent of an argument in radians

atan2
return the arctangent of y/x in radians

atan2f
return the arctangent of y/x in radians

atan2l
return the arctangent of y/x in radians

atanf
return the arctangent of an argument in radians

atanh
return inverse hyperbolic tangent of argument

atanhf
return inverse hyperbolic tangent of argument

atanhl
return inverse hyperbolic tangent of argument

atanl
return the arctangent of an argument in radians

bessel
Bessel functions

cbrt
cube root function

cbrtf
cube root function

cbrtl
cube root function

ceil
return smallest integer not smaller than x

ceilf
return smallest integer not smaller than x

ceill
return smallest integer not smaller than x

copysign
return x with the sign of y

copysignf
return x with the sign of y

copysignl
return x with the sign of y

cos
return the cosine of an argument in radians

cosf
return the cosine of an argument in radians

cosh
return hyperbolic cosine of argument

coshf
return hyperbolic cosine of argument

coshl
return hyperbolic cosine of argument

cosl
return the cosine of an argument in radians

erf
return error function of x

erfc
return complementary error function of x

erfcf
return complementary error function of x

erfcl
return complementary error function of x

erf, erfc
error functions

erff
return error function of x

erfl
return error function of x

exp
exponential function

exp2
exponential function

exp2f
exponential function

exp2l
exponential function

exp, exp2, ldexp, frexp, expm1, cbrt, modf, pow, pown, scalbn, scalbln, sqrt
exponential, mod, power, square root functions

expf
exponential function

expl
exponential function

expm1
exponential function

expm1f
exponential function

expm1l
exponential function

fabs
return the absolute value of x, |x|

fabsf
return the absolute value of x, |x|

fabsl
return the absolute value of x, |x|

fdim
return positive difference between two arguments

fdimf
return positive difference between two arguments

fdiml
return positive difference between two arguments

floor
return largest integer not greater than x

floor, ceil, copysign, fmod, fabs, nan, nearbyint, nextafter, nexttoward
return various results from calculations on arguments

floorf
return largest integer not greater than x

floorl
return largest integer not greater than x

fma
return rounded result of (x × y) + z

fmaf
return rounded result of (x × y) + z

fmal
return rounded result of (x × y) + z

fmax
return maximum numeric value of two arguments

fmaxf
return maximum numeric value of two arguments

fmax, fmin
return maximum/minimum numeric value of two arguments

fmaxl
return maximum numeric value of two arguments

fmin
return minimum numeric value of two arguments

fminf
return minimum numeric value of two arguments

fminl
return minimum numeric value of two arguments

fmod
return the floating point remainder of the division of x by y

fmodf
return the floating point remainder of the division of x by y

fmodl
return the floating point remainder of the division of x by y

fpclassify
classifies x as a particular category

fpclassify, isfinite, isinf, isnan, isnormal, signbit, isless, islessequal, islessgreater, isgreater, isgreaterequal, isunordered
floating point classification macros

frexp
exponential function

frexpf
exponential function

frexpl
exponential function

gamma
log gamma function

gammaf
log gamma function

gammal
log gamma function

gamma, lgamma, tgamma
gamma functions

hypot
Euclidean distance function

hypot
return result of sqrt((x × x) + (y × y))

hypotf
return result of sqrt((x × x) + (y × y))

hypotl
return result of sqrt((x × x) + (y × y))

ilogb
logarithm function

ilogbf
logarithm function

ilogbl
logarithm function

ilogb, log, log1p, log2, log10, logb
logarithm functions

isfinite
determines whether x has a finite value

isgreater
determines whether x is greater than y

isgreaterequal
determines whether x is greater than or equal to y

isinf
determines whether x is positive or negative infinity

isless
determines whether x is less than y

islessequal
determines whether x is less than or equal to y

islessgreater
determines whether x is less than or greater than y

isnan
determines whether x is a NaN

isnormal
determines whether x is not zero, subnormal, infinite, or a NaN

isunordered
determines whether x and y are unordered

j0
Bessel functions

j1
Bessel functions

jn
Bessel functions

ldexp
exponential function

ldexpf
exponential function

ldexpl
exponential function

lgamma
log gamma function

lgammaf
log gamma function

lgammal
log gamma function

llrint
return nearest integer value to floating point argument x

llrintf
return nearest integer value to floating point argument x

llrintl
return nearest integer value to floating point argument x

llround
return the rounded integer value of x

llroundf
return the rounded integer value of x

llroundl
return the rounded integer value of x

log
logarithm function

log10
logarithm function

log10f
logarithm function

log10l
logarithm function

log1p
logarithm function

log1pf
logarithm function

log1pl
logarithm function

log2
logarithm function

log2f
logarithm function

log2l
logarithm function

logb
logarithm function

logbf
logarithm function

logbl
logarithm function

logf
logarithm function

logl
logarithm function

lrint
return nearest integer value to floating point argument x

lrintf
return nearest integer value to floating point argument x

lrintl
return nearest integer value to floating point argument x

lround
return the rounded integer value of x

lroundf
return the rounded integer value of x

lroundl
return the rounded integer value of x

matherr, matherrl
error-handling function

modf
modulus function

modff
modulus function

modfl
modulus function

nan
return a quiet NaN, if available, with content indicated by tagp

nanf
return a quiet NaN, if available, with content indicated by tagp

nanl
return a quiet NaN, if available, with content indicated by tagp

nearbyint
return nearest integer value to floating point argument x

nearbyintf
return nearest integer value to floating point argument x

nearbyintl
return nearest integer value to floating point argument x

nextafter
return the next representable value in the specified format after x in the direction of y

nextafterf
return the next representable value in the specified format after x in the direction of y

nextafterl
return the next representable value in the specified format after x in the direction of y

nexttoward
return the next representable value in the specified format after x in the direction of y

nexttowardf
return the next representable value in the specified format after x in the direction of y

nexttowardl
return the next representable value in the specified format after x in the direction of y

pow
power function

powf
power function

powl
power function

pown
power function

pownf
power function

pownl
power function

remainder
return floating point remainder of division of x by y

remainderf
return floating point remainder of division of x by y

remainderl
return floating point remainder of division of x by y

remainder, remquo
remainder functions

remquo
return floating point remainder of division of x by y

remquof
return floating point remainder of division of x by y

remquol
return floating point remainder of division of x by y

rint
return nearest integer value to floating point argument x

rintf
return nearest integer value to floating point argument x

rintl
return nearest integer value to floating point argument x

rint, lrint, llrint, round, lround, llround, trunc
nearest integer value, rounding and truncation functions

round
return the rounded integer value of x

roundf
return the rounded integer value of x

roundl
return the rounded integer value of x

scalbln
scalbln function

scalblnf
scalbln function

scalblnl
scalbln function

scalbn
scalbn function

scalbnf
scalbn function

scalbnl
scalbn function

signbit
determines whether the sign of x is negative

signgam
storage for sign for gamma and lgamma

signgam
storage for sign for lgamma and tgamma

sin
return the sine of an argument in radians

sin, cos, tan, asin, acos, atan, atan2
trigonometric functions

sinf
return the sine of an argument in radians

sinh
return hyperbolic sine of argument

sinh, cosh, tanh, asinh, acosh, atanh
return hyperbolic and inverse hyperbolic sine, cosine and tangent of argument

sinhf
return hyperbolic sine of argument

sinhl
return hyperbolic sine of argument

sinl
return the sine of an argument in radians

sqrt
square root function

sqrtf
square root function

sqrtl
square root function

tan
return the tangent of an argument in radians

tanf
return the tangent of an argument in radians

tanh
return hyperbolic tangent of argument

tanhf
return hyperbolic tangent of argument

tanhl
return hyperbolic tangent of argument

tanl
return the tangent of an argument in radians

tgamma
gamma function

tgammaf
gamma function

tgammal
gamma function

trunc
return the truncated integer value of x

truncf
return the truncated integer value of x

truncl
return the truncated integer value of x

y0
Bessel functions

y1
Bessel functions

yn
Bessel functions

© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004