]> git.ipfire.org Git - thirdparty/gcc.git/blob - libquadmath/doc/math-library-routines.rst
78cd8ee1d2d77bfffaba262e35b7f951a78e610b
[thirdparty/gcc.git] / libquadmath / doc / math-library-routines.rst
1 ..
2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
5
6 .. _math-library-routines:
7
8 Math Library Routines
9 ---------------------
10
11 The following mathematical functions are available:
12
13 * :samp:`{acosq}`: arc cosine function
14 * :samp:`{acoshq}`: inverse hyperbolic cosine function
15 * :samp:`{asinq}`: arc sine function
16 * :samp:`{asinhq}`: inverse hyperbolic sine function
17 * :samp:`{atanq}`: arc tangent function
18 * :samp:`{atanhq}`: inverse hyperbolic tangent function
19 * :samp:`{atan2q}`: arc tangent function
20 * :samp:`{cbrtq}`: cube root function
21 * :samp:`{ceilq}`: ceiling value function
22 * :samp:`{copysignq}`: copy sign of a number
23 * :samp:`{coshq}`: hyperbolic cosine function
24 * :samp:`{cosq}`: cosine function
25 * :samp:`{erfq}`: error function
26 * :samp:`{erfcq}`: complementary error function
27 * :samp:`{exp2q}`: base 2 exponential function
28 * :samp:`{expq}`: exponential function
29 * :samp:`{expm1q}`: exponential minus 1 function
30 * :samp:`{fabsq}`: absolute value function
31 * :samp:`{fdimq}`: positive difference function
32 * :samp:`{finiteq}`: check finiteness of value
33 * :samp:`{floorq}`: floor value function
34 * :samp:`{fmaq}`: fused multiply and add
35 * :samp:`{fmaxq}`: determine maximum of two values
36 * :samp:`{fminq}`: determine minimum of two values
37 * :samp:`{fmodq}`: remainder value function
38 * :samp:`{frexpq}`: extract mantissa and exponent
39 * :samp:`{hypotq}`: Eucledian distance function
40 * :samp:`{ilogbq}`: get exponent of the value
41 * :samp:`{isinfq}`: check for infinity
42 * :samp:`{isnanq}`: check for not a number
43 * :samp:`{issignalingq}`: check for signaling not a number
44 * :samp:`{j0q}`: Bessel function of the first kind, first order
45 * :samp:`{j1q}`: Bessel function of the first kind, second order
46 * :samp:`{jnq}`: Bessel function of the first kind, {n}-th order
47 * :samp:`{ldexpq}`: load exponent of the value
48 * :samp:`{lgammaq}`: logarithmic gamma function
49 * :samp:`{llrintq}`: round to nearest integer value
50 * :samp:`{llroundq}`: round to nearest integer value away from zero
51 * :samp:`{logbq}`: get exponent of the value
52 * :samp:`{logq}`: natural logarithm function
53 * :samp:`{log10q}`: base 10 logarithm function
54 * :samp:`{log1pq}`: compute natural logarithm of the value plus one
55 * :samp:`{log2q}`: base 2 logarithm function
56 * :samp:`{lrintq}`: round to nearest integer value
57 * :samp:`{lroundq}`: round to nearest integer value away from zero
58 * :samp:`{modfq}`: decompose the floating-point number
59 * :samp:`{nanq}`: return quiet NaN
60 * :samp:`{nearbyintq}`: round to nearest integer
61 * :samp:`{nextafterq}`: next representable floating-point number
62 * :samp:`{powq}`: power function
63 * :samp:`{remainderq}`: remainder function
64 * :samp:`{remquoq}`: remainder and part of quotient
65 * :samp:`{rintq}`: round-to-nearest integral value
66 * :samp:`{roundq}`: round-to-nearest integral value, return {__float128}
67 * :samp:`{scalblnq}`: compute exponent using {FLT_RADIX}
68 * :samp:`{scalbnq}`: compute exponent using {FLT_RADIX}
69 * :samp:`{signbitq}`: return sign bit
70 * :samp:`{sincosq}`: calculate sine and cosine simultaneously
71 * :samp:`{sinhq}`: hyperbolic sine function
72 * :samp:`{sinq}`: sine function
73 * :samp:`{sqrtq}`: square root function
74 * :samp:`{tanq}`: tangent function
75 * :samp:`{tanhq}`: hyperbolic tangent function
76 * :samp:`{tgammaq}`: true gamma function
77 * :samp:`{truncq}`: round to integer, towards zero
78 * :samp:`{y0q}`: Bessel function of the second kind, first order
79 * :samp:`{y1q}`: Bessel function of the second kind, second order
80 * :samp:`{ynq}`: Bessel function of the second kind, {n}-th order
81 * :samp:`{cabsq}`: complex absolute value function
82 * :samp:`{cargq}`: calculate the argument
83 * :samp:`{cimagq}`: imaginary part of complex number
84 * :samp:`{crealq}`: real part of complex number
85 * :samp:`{cacoshq}`: complex arc hyperbolic cosine function
86 * :samp:`{cacosq}`: complex arc cosine function
87 * :samp:`{casinhq}`: complex arc hyperbolic sine function
88 * :samp:`{casinq}`: complex arc sine function
89 * :samp:`{catanhq}`: complex arc hyperbolic tangent function
90 * :samp:`{catanq}`: complex arc tangent function
91 * :samp:`{ccosq}`: complex cosine function
92 * :samp:`{ccoshq}`: complex hyperbolic cosine function
93 * :samp:`{cexpq}`: complex exponential function
94 * :samp:`{cexpiq}`: computes the exponential function of 'i' times a real value
95 * :samp:`{clogq}`: complex natural logarithm
96 * :samp:`{clog10q}`: complex base 10 logarithm
97 * :samp:`{conjq}`: complex conjugate function
98 * :samp:`{cpowq}`: complex power function
99 * :samp:`{cprojq}`: project into Riemann Sphere
100 * :samp:`{csinq}`: complex sine function
101 * :samp:`{csinhq}`: complex hyperbolic sine function
102 * :samp:`{csqrtq}`: complex square root
103 * :samp:`{ctanq}`: complex tangent function
104 * :samp:`{ctanhq}`: complex hyperbolic tangent function