Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ () — Coherent 3.1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


mathematics library          Overview         mathematics library




The following mathematics routines are available with COHERENT:

acos()    Calculate inverse cosine
asin()    Calculate inverse sine
atan()    Calculate inverse tangent
atan2()   Calculate inverse tangent of quotient
cabs()    Calculate complex absolute value
ceil()    Set numeric ceiling
cos()     Calculate cosine
cosh()    Calculate hyperbolic cosine
exp()     Calculate exponent
fabs()    Calculate absolute value function
floor()   Calculate floor function
hypot()   Calculate hypotenuse
j0()      Calculate Bessel function, order 0
j1()      Calculate Bessel function, order 1
jn()      Calculate Bessel function, order n
log()     Calculate natural logarithm
log10()   Calculate common logarithm
pow()     Calculate power
sin()     Calculate sine
sinh()    Calculate hyperbolic sine
sqrt()    Calculate square root
tan()     Calculate tangent
tanh()    Calculate hyperbolic tangent

***** See Also *****

Lexicon, Libraries, math.h

***** Notes *****

When programs that contain mathematics routines are compiled, the
mathematics libraries must  be called specifically on the cc com-
mand line.   For example, to compile  the example presented under
the entry for acos, use the following cc command line:


          cc -f acos.c -lm


The -f  option links in  the floating point  routines for printf,
while the  -lm option links  in the mathematics  libraries.  Note
that the -lm option must come last on the cc command line, or the
library will not be searched properly.











COHERENT Lexicon                                           Page 1


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