.. Copyright 1988-2022 Free Software Foundation, Inc. This is part of the GCC manual. For copying conditions, see the copyright.rst file. .. _math-library-routines: Math Library Routines --------------------- The following mathematical functions are available: * :samp:`{acosq}`: arc cosine function * :samp:`{acoshq}`: inverse hyperbolic cosine function * :samp:`{asinq}`: arc sine function * :samp:`{asinhq}`: inverse hyperbolic sine function * :samp:`{atanq}`: arc tangent function * :samp:`{atanhq}`: inverse hyperbolic tangent function * :samp:`{atan2q}`: arc tangent function * :samp:`{cbrtq}`: cube root function * :samp:`{ceilq}`: ceiling value function * :samp:`{copysignq}`: copy sign of a number * :samp:`{coshq}`: hyperbolic cosine function * :samp:`{cosq}`: cosine function * :samp:`{erfq}`: error function * :samp:`{erfcq}`: complementary error function * :samp:`{exp2q}`: base 2 exponential function * :samp:`{expq}`: exponential function * :samp:`{expm1q}`: exponential minus 1 function * :samp:`{fabsq}`: absolute value function * :samp:`{fdimq}`: positive difference function * :samp:`{finiteq}`: check finiteness of value * :samp:`{floorq}`: floor value function * :samp:`{fmaq}`: fused multiply and add * :samp:`{fmaxq}`: determine maximum of two values * :samp:`{fminq}`: determine minimum of two values * :samp:`{fmodq}`: remainder value function * :samp:`{frexpq}`: extract mantissa and exponent * :samp:`{hypotq}`: Eucledian distance function * :samp:`{ilogbq}`: get exponent of the value * :samp:`{isinfq}`: check for infinity * :samp:`{isnanq}`: check for not a number * :samp:`{issignalingq}`: check for signaling not a number * :samp:`{j0q}`: Bessel function of the first kind, first order * :samp:`{j1q}`: Bessel function of the first kind, second order * :samp:`{jnq}`: Bessel function of the first kind, {n}-th order * :samp:`{ldexpq}`: load exponent of the value * :samp:`{lgammaq}`: logarithmic gamma function * :samp:`{llrintq}`: round to nearest integer value * :samp:`{llroundq}`: round to nearest integer value away from zero * :samp:`{logbq}`: get exponent of the value * :samp:`{logq}`: natural logarithm function * :samp:`{log10q}`: base 10 logarithm function * :samp:`{log1pq}`: compute natural logarithm of the value plus one * :samp:`{log2q}`: base 2 logarithm function * :samp:`{lrintq}`: round to nearest integer value * :samp:`{lroundq}`: round to nearest integer value away from zero * :samp:`{modfq}`: decompose the floating-point number * :samp:`{nanq}`: return quiet NaN * :samp:`{nearbyintq}`: round to nearest integer * :samp:`{nextafterq}`: next representable floating-point number * :samp:`{powq}`: power function * :samp:`{remainderq}`: remainder function * :samp:`{remquoq}`: remainder and part of quotient * :samp:`{rintq}`: round-to-nearest integral value * :samp:`{roundq}`: round-to-nearest integral value, return {__float128} * :samp:`{scalblnq}`: compute exponent using {FLT_RADIX} * :samp:`{scalbnq}`: compute exponent using {FLT_RADIX} * :samp:`{signbitq}`: return sign bit * :samp:`{sincosq}`: calculate sine and cosine simultaneously * :samp:`{sinhq}`: hyperbolic sine function * :samp:`{sinq}`: sine function * :samp:`{sqrtq}`: square root function * :samp:`{tanq}`: tangent function * :samp:`{tanhq}`: hyperbolic tangent function * :samp:`{tgammaq}`: true gamma function * :samp:`{truncq}`: round to integer, towards zero * :samp:`{y0q}`: Bessel function of the second kind, first order * :samp:`{y1q}`: Bessel function of the second kind, second order * :samp:`{ynq}`: Bessel function of the second kind, {n}-th order * :samp:`{cabsq}`: complex absolute value function * :samp:`{cargq}`: calculate the argument * :samp:`{cimagq}`: imaginary part of complex number * :samp:`{crealq}`: real part of complex number * :samp:`{cacoshq}`: complex arc hyperbolic cosine function * :samp:`{cacosq}`: complex arc cosine function * :samp:`{casinhq}`: complex arc hyperbolic sine function * :samp:`{casinq}`: complex arc sine function * :samp:`{catanhq}`: complex arc hyperbolic tangent function * :samp:`{catanq}`: complex arc tangent function * :samp:`{ccosq}`: complex cosine function * :samp:`{ccoshq}`: complex hyperbolic cosine function * :samp:`{cexpq}`: complex exponential function * :samp:`{cexpiq}`: computes the exponential function of 'i' times a real value * :samp:`{clogq}`: complex natural logarithm * :samp:`{clog10q}`: complex base 10 logarithm * :samp:`{conjq}`: complex conjugate function * :samp:`{cpowq}`: complex power function * :samp:`{cprojq}`: project into Riemann Sphere * :samp:`{csinq}`: complex sine function * :samp:`{csinhq}`: complex hyperbolic sine function * :samp:`{csqrtq}`: complex square root * :samp:`{ctanq}`: complex tangent function * :samp:`{ctanhq}`: complex hyperbolic tangent function