Math Scalar Library
Programming Reference Manual C/C++
Version 1.0 DD-00003-010
Math Scalar Library
Reference Manual (C/C++)
DD-00003-010
Jan Adelsbach
January 26, 2024
Contents
1
About this Guide
1.1
Legal Information
1.2
Feedback and Contact
1.3
Introduction
1.4
Audience for This Guide
1.5
How to Use This Guide
1.6
Conventions Used in This Guide
2
Overview
2.1
Introduction
2.2
Function Naming Scheme
2.3
Thread Safety
2.4
FPU Signaling
3
Utility
3.1
mscaver
- Version query
4
Rounding
4.1
sfloor
- Round down to nearest integral part
4.2
sceil
- Round up to nearest integral part
4.3
strunc
- Truncate to nearest integral part
4.4
sround
- Round to nearest integral part
5
Roots
5.1
ssqrt
- Square root
5.2
srsqrt
- Inverse square root
5.3
scbrt
- Cube root
5.4
srcbrt
- Inverse cube root
6
Trigonometric Functions
6.1
ssin
- Sine
6.2
scos
- Cosine
6.3
stan
- Tangent
6.4
sasin
- Arcsine
6.5
sacos
- Arccosine
6.6
satan
- Arctangent
7
Hypergeometric Functions
7.1
ssinh
- Hypergeometric sine
7.2
scosh
- Hypergeometric cosine
7.3
stanh
- Hypergeometric tangent
7.4
sasinh
- Hypergeometric arcsine
7.5
sacosh
- Hypergeometric arccosine
7.6
satanh
- Hypergeometric arctangent
8
Expoentials and Logarithms
8.1
sexp
- Exponentiation
8.2
sexpm1
- Exponentiation
8.3
sexp2
- Binary exponentiation
8.4
slog
- Natural logarithm
8.5
slog2
- Base-2 logarithm
8.6
slog10
- Base-10 logarithm
8.7
slog1p
- Natural logarithm plus one
8.8
spow
- Raise
8.9
sfmod
- Remainder
9
Special Functions
9.1
serf
- Error function
9.2
serfc
- Complementary error function
9.3
sj0
- Bessel function
9.4
sy0
- Bessel function
9.5
sj1
- Bessel function
9.6
sy1
- Bessel function
9.7
sjn
- Bessel function
9.8
syn
- Bessel function
9.9
slgamma
- Log-Gamma function
10
Other Functions
10.1
sfabs
- Absolute value
10.2
scopysign
- Copy sign
10.3
shypot
- Euclidean distance
10.4
sremainder
- Remainder
11
Complex Numbers
11.1
screal
- Complex real component
11.2
scimag
- Complex imaginary component
11.3
scabs
- Complex absolute value
11.4
scarg
- Complex argument
11.5
sconj
- Complex conjugate
11.6
scproj
- Complex Riemann sphere projection
11.7
scexp
- Complex exponentiation
11.8
sclog
- Complex logarithm
11.9
scsin
- Complex sine
11.10
sccos
- Complex cosine
11.11
sctan
- Complex tangent
11.12
scasin
- Complex arcsine
11.13
scacos
- Complex arccosine
11.14
scatan
- Complex arctangent
11.15
scsinh
- Complex hyperbolic sine
11.16
sccosh
- Complex hyperbolic cosine
11.17
sctanh
- Complex hyperbolic tangent
11.18
scasinh
- Complex hyperbolic arcsine
11.19
scacosh
- Complex hyperbolic arccosine
11.20
scatanh
- Complex hyperbolic arctangent
11.21
scsqrt
- Complex square root
11.22
scpow
- Complex power
12
Acknowledgements
[
next
]