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