INTRO(3M) — MATHEMATICAL FUNCTIONS
NAME
intro − introduction to mathematical library functions and constants
SYNOPSIS
#include <math.h>
DESCRIPTION
The include file <math.h> contains declarations of all the functions in the Math Library libm (described in Section 3M), as well as various functions in the C Library (Section 3C) that return floating-point values. Functions in this library are automatically loaded as needed by the Fortran compiler f77(1). The link editor searches this library under the “−lm” option.
<math.h> also defines the structure and constants used by the matherr(3M) error-handling mechanisms, including the following constant used as an error-return value:
HUGE The maximum value of a double-precision floating-point number.
The following mathematical constants are defined for user convenience:
M_E The base of natural logarithms (e).
M_LOG2E The base-2 logarithm of e.
M_LOG10E The base-10 logarithm of e.
M_LN2 The natural logarithm of 2.
M_LN10 The natural logarithm of 10.
M_PI The ratio of the circumference of a circle to its diameter. (There are also several fractions of its reciprocal and its square root.)
M_SQRT2 The positive square root of 2.
M_SQRT1_2 The positive square root of 1/2.
For the definitions of various machine-dependent “constants,” see the description of the <values.h> header file.
LIST OF FUNCTIONS
NameAppears on PageDescription
acossin(3M)inverse trigonometric functions
acoshasinh(3M)inverse hyperbolic function
asinsin(3M)inverse trigonometric function
asinhasinh(3M)inverse hyperbolic function
atansin(3M)inverse trigonometric function
atan2sin(3M)inverse trigonometric function
atanhasinh(3M)inverse hyperbolic function
cabshypot(3M)complex magnitude
cbrtsqrt(3M)cube root
ceilfloor(3M)ceiling function
copysignieee(3M)copy sign bit
cossin(3M)trigonometric function
coshsinh(3M)hyperbolic function
dremieee(3M)remainder
erferf(3M)error function
erfcerf(3M)complementary error function
expexp(3M)exponential function
expm1exp(3M)exp(X)-1
fabsfloor(3M)absolute value function
finiteieee(3M)test for finite number
floorfloor(3M)floor function
hypothypot(3M)Euclidean distance
j0j0(3M)Bessel function
j1j0(3M)Bessel function
jnj0(3M)Bessel function
lgammalgamma(3M)log gamma function
logexp(3M)natural logarithm
log10exp(3M)common logarithm
log1pexp(3M)log(1+X)
logbieee(3M)exponent extraction
matherrmatherr(3M)math library error-handling routines
powexp(3M)power x∗∗y
rintfloor(3M)round to nearest integral value
scalbieee(eM)exponent adjustment
sinsin(3M)trigonometric function
sinhsinh(3M)hyperbolic function
sqrtsqrt(3M)square root
tansin(3M)trigonometric function
tanhsinh(3M)hyperbolic function
y0j0(3M)Bessel function
y1j0(3M)Bessel function
ynj0(3M)Bessel function
Sun Release 3.2 — Last change: 14 March 1986