Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ intro(3m) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

f77(1)

ld(1)

intro(2)

intro(3)

intro(3f)

intro(3j)

intro(3n)

intro(3x)

intro(3m)

NAME

intro − introduction to the Math library subroutines

DESCRIPTION

This section describes the Math library subroutines.  These subroutines are identified by the section number (3m) at the top of the page:

(3m) These functions constitute the Math library subroutines, which are in the /lib/libm.a library.  Declarations for these routines are contained in the <math.h> include file.  These subroutines are automatically available to the FORTRAN programmer and require no special invocation of the f77 compiler.  The link editor searches this library when the −lm option is specified. 

Math Library Manual
Subroutines Description Page
acos Trigonometric function trig(3m)
asin Trigonometric function trig(3m)
atan Trigonometric function trig(3m)
atan2 Trigonometric function trig(3m)
cabs Eucledean distance function hypot(3m)
ceil Absolute value, floor, ceiling functions floor(3m)
cos Trigonometric function trig(3m)
cosh Hyperbolic function sinh(3m)
erf Error function erf(3m)
erfc Error function erf(3m)
exp Exponential function exp(3m)
fabs Absolute value, floor, ceiling functions floor(3m)
floor Absolute value, floor, ceiling functions floor(3m)
fmod Absolute value, floor, ceiling functions floor(3m)
gamma Log gamma function gamma(3m)
hypot Euclidean distance hypot(3m)
iran Uniform pseudorandom number generator ranm(3m)
j0 Bessel function bessel(3m)
j1 Bessel function bessel(3m)
jn Bessel function bessel(3m)
log Logarithm function exp(3m)
log10 Logarithm function exp(3m)
matherr Error-handling function matherr(3m)
pow Power function exp(3m)
randomize Uniform pseudo-random number generator ranm(3m)
ranres Uniform pseudorandom number generator ranm(3m)
ransav Uniform pseudorandom number generator ranm(3m)
sin Trigonometric functions trig(3m)
sinh Hyperbolic functions sinh(3m)
sqrt Square root intrinsic function exp(3m)
tan Trigonometric function trig(3m)
tanh Tangent function sinh(3m)
y0 Bessel function bessel(3m)
y1 Bessel function bessel(3m)
yn Bessel function bessel(3m)

DIAGNOSTICS

Functions in the math library (3m) may return conventional values when the function is undefined for the given arguments or when the value is not representable.  In these cases the external variable errno is set to the value EDOM or ERANGE.  For further information, see intro(2).  The values of EDOM and ERANGE are defined in the <math.h> include file. 

Functions in the Math Libraries (3m) may return the conventional values 0 or ±HUGE (the largest-magnitude single-precision floating-point numbers; HUGE is defined in the <math.h> header file) when the function is undefined for the given arguments or when the value is not representable.  In these cases, the external variable errno is set to the value EDOM or ERANGE.  For further information, see intro(2).  As many of the FORTRAN intrinsic functions use the routines found in the Math Library, the same conventions apply. 

SEE ALSO

f77(1), ld(1), intro(2), intro(3), intro(3f), intro(3j), intro(3n), intro(3x)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026