Math-Library-Routines.html 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Copyright (C) 2010-2017 Free Software Foundation, Inc.
  4. Permission is granted to copy, distribute and/or modify this document
  5. under the terms of the GNU Free Documentation License, Version 1.2 or
  6. any later version published by the Free Software Foundation; with no
  7. Invariant Sections, with the Front-Cover Texts being "A GNU Manual,"
  8. and with the Back-Cover Texts as in (a) below. A copy of the
  9. license is included in the section entitled "GNU Free Documentation
  10. License."
  11. (a) The FSF's Back-Cover Text is: "You have the freedom to
  12. copy and modify this GNU manual. -->
  13. <!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
  14. <head>
  15. <title>GCC libquadmath: Math Library Routines</title>
  16. <meta name="description" content="GCC libquadmath: Math Library Routines">
  17. <meta name="keywords" content="GCC libquadmath: Math Library Routines">
  18. <meta name="resource-type" content="document">
  19. <meta name="distribution" content="global">
  20. <meta name="Generator" content="makeinfo">
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  22. <link href="index.html#Top" rel="start" title="Top">
  23. <link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
  24. <link href="index.html#Top" rel="up" title="Top">
  25. <link href="I_002fO-Library-Routines.html#I_002fO-Library-Routines" rel="next" title="I/O Library Routines">
  26. <link href="Typedef-and-constants.html#Typedef-and-constants" rel="prev" title="Typedef and constants">
  27. <style type="text/css">
  28. <!--
  29. a.summary-letter {text-decoration: none}
  30. blockquote.smallquotation {font-size: smaller}
  31. div.display {margin-left: 3.2em}
  32. div.example {margin-left: 3.2em}
  33. div.indentedblock {margin-left: 3.2em}
  34. div.lisp {margin-left: 3.2em}
  35. div.smalldisplay {margin-left: 3.2em}
  36. div.smallexample {margin-left: 3.2em}
  37. div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
  38. div.smalllisp {margin-left: 3.2em}
  39. kbd {font-style:oblique}
  40. pre.display {font-family: inherit}
  41. pre.format {font-family: inherit}
  42. pre.menu-comment {font-family: serif}
  43. pre.menu-preformatted {font-family: serif}
  44. pre.smalldisplay {font-family: inherit; font-size: smaller}
  45. pre.smallexample {font-size: smaller}
  46. pre.smallformat {font-family: inherit; font-size: smaller}
  47. pre.smalllisp {font-size: smaller}
  48. span.nocodebreak {white-space:nowrap}
  49. span.nolinebreak {white-space:nowrap}
  50. span.roman {font-family:serif; font-weight:normal}
  51. span.sansserif {font-family:sans-serif; font-weight:normal}
  52. ul.no-bullet {list-style: none}
  53. -->
  54. </style>
  55. </head>
  56. <body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
  57. <a name="Math-Library-Routines"></a>
  58. <div class="header">
  59. <p>
  60. Next: <a href="I_002fO-Library-Routines.html#I_002fO-Library-Routines" accesskey="n" rel="next">I/O Library Routines</a>, Previous: <a href="Typedef-and-constants.html#Typedef-and-constants" accesskey="p" rel="prev">Typedef and constants</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  61. </div>
  62. <hr>
  63. <a name="Math-Library-Routines-1"></a>
  64. <h2 class="chapter">2 Math Library Routines</h2>
  65. <p>The following mathematical functions are available:
  66. </p>
  67. <dl compact="compact">
  68. <dt><code>acosq</code>: arc cosine function</dt>
  69. <dt><code>acoshq</code>: inverse hyperbolic cosine function</dt>
  70. <dt><code>asinq</code>: arc sine function</dt>
  71. <dt><code>asinhq</code>: inverse hyperbolic sine function</dt>
  72. <dt><code>atanq</code>: arc tangent function</dt>
  73. <dt><code>atanhq</code>: inverse hyperbolic tangent function</dt>
  74. <dt><code>atan2q</code>: arc tangent function</dt>
  75. <dt><code>cbrtq</code>: cube root function</dt>
  76. <dt><code>ceilq</code>: ceiling value function</dt>
  77. <dt><code>copysignq</code>: copy sign of a number</dt>
  78. <dt><code>coshq</code>: hyperbolic cosine function</dt>
  79. <dt><code>cosq</code>: cosine function</dt>
  80. <dt><code>erfq</code>: error function</dt>
  81. <dt><code>erfcq</code>: complementary error function</dt>
  82. <dt><code>expq</code>: exponential function</dt>
  83. <dt><code>expm1q</code>: exponential minus 1 function</dt>
  84. <dt><code>fabsq</code>: absolute value function</dt>
  85. <dt><code>fdimq</code>: positive difference function</dt>
  86. <dt><code>finiteq</code>: check finiteness of value</dt>
  87. <dt><code>floorq</code>: floor value function</dt>
  88. <dt><code>fmaq</code>: fused multiply and add</dt>
  89. <dt><code>fmaxq</code>: determine maximum of two values</dt>
  90. <dt><code>fminq</code>: determine minimum of two values</dt>
  91. <dt><code>fmodq</code>: remainder value function</dt>
  92. <dt><code>frexpq</code>: extract mantissa and exponent</dt>
  93. <dt><code>hypotq</code>: Eucledian distance function</dt>
  94. <dt><code>ilogbq</code>: get exponent of the value</dt>
  95. <dt><code>isinfq</code>: check for infinity</dt>
  96. <dt><code>isnanq</code>: check for not a number</dt>
  97. <dt><code>j0q</code>: Bessel function of the first kind, first order</dt>
  98. <dt><code>j1q</code>: Bessel function of the first kind, second order</dt>
  99. <dt><code>jnq</code>: Bessel function of the first kind, <var>n</var>-th order</dt>
  100. <dt><code>ldexpq</code>: load exponent of the value</dt>
  101. <dt><code>lgammaq</code>: logarithmic gamma function</dt>
  102. <dt><code>llrintq</code>: round to nearest integer value</dt>
  103. <dt><code>llroundq</code>: round to nearest integer value away from zero</dt>
  104. <dt><code>logbq</code>: get exponent of the value</dt>
  105. <dt><code>logq</code>: natural logarithm function</dt>
  106. <dt><code>log10q</code>: base 10 logarithm function</dt>
  107. <dt><code>log1pq</code>: compute natural logarithm of the value plus one</dt>
  108. <dt><code>log2q</code>: base 2 logarithm function</dt>
  109. <dt><code>lrintq</code>: round to nearest integer value</dt>
  110. <dt><code>lroundq</code>: round to nearest integer value away from zero</dt>
  111. <dt><code>modfq</code>: decompose the floating-point number</dt>
  112. <dt><code>nanq</code>: return quiet NaN</dt>
  113. <dt><code>nearbyintq</code>: round to nearest integer</dt>
  114. <dt><code>nextafterq</code>: next representable floating-point number</dt>
  115. <dt><code>powq</code>: power function</dt>
  116. <dt><code>remainderq</code>: remainder function</dt>
  117. <dt><code>remquoq</code>: remainder and part of quotient</dt>
  118. <dt><code>rintq</code>: round-to-nearest integral value</dt>
  119. <dt><code>roundq</code>: round-to-nearest integral value, return <code>__float128</code></dt>
  120. <dt><code>scalblnq</code>: compute exponent using <code>FLT_RADIX</code></dt>
  121. <dt><code>scalbnq</code>: compute exponent using <code>FLT_RADIX</code></dt>
  122. <dt><code>signbitq</code>: return sign bit</dt>
  123. <dt><code>sincosq</code>: calculate sine and cosine simultaneously</dt>
  124. <dt><code>sinhq</code>: hyperbolic sine function</dt>
  125. <dt><code>sinq</code>: sine function</dt>
  126. <dt><code>sqrtq</code>: square root function</dt>
  127. <dt><code>tanq</code>: tangent function</dt>
  128. <dt><code>tanhq</code>: hyperbolic tangent function</dt>
  129. <dt><code>tgammaq</code>: true gamma function</dt>
  130. <dt><code>truncq</code>: round to integer, towards zero</dt>
  131. <dt><code>y0q</code>: Bessel function of the second kind, first order</dt>
  132. <dt><code>y1q</code>: Bessel function of the second kind, second order</dt>
  133. <dt><code>ynq</code>: Bessel function of the second kind, <var>n</var>-th order</dt>
  134. <dt><code>cabsq</code> complex absolute value function</dt>
  135. <dt><code>cargq</code>: calculate the argument</dt>
  136. <dt><code>cimagq</code> imaginary part of complex number</dt>
  137. <dt><code>crealq</code>: real part of complex number</dt>
  138. <dt><code>cacoshq</code>: complex arc hyperbolic cosine function</dt>
  139. <dt><code>cacosq</code>: complex arc cosine function</dt>
  140. <dt><code>casinhq</code>: complex arc hyperbolic sine function</dt>
  141. <dt><code>casinq</code>: complex arc sine function</dt>
  142. <dt><code>catanhq</code>: complex arc hyperbolic tangent function</dt>
  143. <dt><code>catanq</code>: complex arc tangent function</dt>
  144. <dt><code>ccosq</code> complex cosine function:</dt>
  145. <dt><code>ccoshq</code>: complex hyperbolic cosine function</dt>
  146. <dt><code>cexpq</code>: complex exponential function</dt>
  147. <dt><code>cexpiq</code>: computes the exponential function of &ldquo;i&rdquo; times a</dt>
  148. <dd><p>real value
  149. </p></dd>
  150. <dt><code>clogq</code>: complex natural logarithm</dt>
  151. <dt><code>clog10q</code>: complex base 10 logarithm</dt>
  152. <dt><code>conjq</code>: complex conjugate function</dt>
  153. <dt><code>cpowq</code>: complex power function</dt>
  154. <dt><code>cprojq</code>: project into Riemann Sphere</dt>
  155. <dt><code>csinq</code>: complex sine function</dt>
  156. <dt><code>csinhq</code>: complex hyperbolic sine function</dt>
  157. <dt><code>csqrtq</code>: complex square root</dt>
  158. <dt><code>ctanq</code>: complex tangent function</dt>
  159. <dt><code>ctanhq</code>: complex hyperbolic tangent function</dt>
  160. </dl>
  161. <hr>
  162. <div class="header">
  163. <p>
  164. Next: <a href="I_002fO-Library-Routines.html#I_002fO-Library-Routines" accesskey="n" rel="next">I/O Library Routines</a>, Previous: <a href="Typedef-and-constants.html#Typedef-and-constants" accesskey="p" rel="prev">Typedef and constants</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
  165. </div>
  166. </body>
  167. </html>