3
<title>Elementary Complex Functions - GNU Scientific Library -- Reference Manual</title>
4
<meta http-equiv="Content-Type" content="text/html">
5
<meta name="description" content="GNU Scientific Library -- Reference Manual">
6
<meta name="generator" content="makeinfo 4.8">
7
<link title="Top" rel="start" href="index.html#Top">
8
<link rel="up" href="Complex-Numbers.html#Complex-Numbers" title="Complex Numbers">
9
<link rel="prev" href="Complex-arithmetic-operators.html#Complex-arithmetic-operators" title="Complex arithmetic operators">
10
<link rel="next" href="Complex-Trigonometric-Functions.html#Complex-Trigonometric-Functions" title="Complex Trigonometric Functions">
11
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
13
Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 The GSL Team.
15
Permission is granted to copy, distribute and/or modify this document
16
under the terms of the GNU Free Documentation License, Version 1.2 or
17
any later version published by the Free Software Foundation; with the
18
Invariant Sections being ``GNU General Public License'' and ``Free Software
19
Needs Free Documentation'', the Front-Cover text being ``A GNU Manual'',
20
and with the Back-Cover Text being (a) (see below). A copy of the
21
license is included in the section entitled ``GNU Free Documentation
24
(a) The Back-Cover Text is: ``You have freedom to copy and modify this
25
GNU Manual, like GNU software.''-->
26
<meta http-equiv="Content-Style-Type" content="text/css">
27
<style type="text/css"><!--
28
pre.display { font-family:inherit }
29
pre.format { font-family:inherit }
30
pre.smalldisplay { font-family:inherit; font-size:smaller }
31
pre.smallformat { font-family:inherit; font-size:smaller }
32
pre.smallexample { font-size:smaller }
33
pre.smalllisp { font-size:smaller }
34
span.sc { font-variant:small-caps }
35
span.roman { font-family:serif; font-weight:normal; }
36
span.sansserif { font-family:sans-serif; font-weight:normal; }
42
<a name="Elementary-Complex-Functions"></a>
43
Next: <a rel="next" accesskey="n" href="Complex-Trigonometric-Functions.html#Complex-Trigonometric-Functions">Complex Trigonometric Functions</a>,
44
Previous: <a rel="previous" accesskey="p" href="Complex-arithmetic-operators.html#Complex-arithmetic-operators">Complex arithmetic operators</a>,
45
Up: <a rel="up" accesskey="u" href="Complex-Numbers.html#Complex-Numbers">Complex Numbers</a>
49
<h3 class="section">5.4 Elementary Complex Functions</h3>
52
— Function: gsl_complex <b>gsl_complex_sqrt</b> (<var>gsl_complex z</var>)<var><a name="index-gsl_005fcomplex_005fsqrt-165"></a></var><br>
53
<blockquote><p><a name="index-square-root-of-complex-number-166"></a>This function returns the square root of the complex number <var>z</var>,
54
\sqrt z. The branch cut is the negative real axis. The result
55
always lies in the right half of the complex plane.
56
</p></blockquote></div>
59
— Function: gsl_complex <b>gsl_complex_sqrt_real</b> (<var>double x</var>)<var><a name="index-gsl_005fcomplex_005fsqrt_005freal-167"></a></var><br>
60
<blockquote><p>This function returns the complex square root of the real number
61
<var>x</var>, where <var>x</var> may be negative.
62
</p></blockquote></div>
65
— Function: gsl_complex <b>gsl_complex_pow</b> (<var>gsl_complex z, gsl_complex a</var>)<var><a name="index-gsl_005fcomplex_005fpow-168"></a></var><br>
66
<blockquote><p><a name="index-power-of-complex-number-169"></a><a name="index-exponentiation-of-complex-number-170"></a>The function returns the complex number <var>z</var> raised to the complex
67
power <var>a</var>, z^a. This is computed as \exp(\log(z)*a)
68
using complex logarithms and complex exponentials.
69
</p></blockquote></div>
72
— Function: gsl_complex <b>gsl_complex_pow_real</b> (<var>gsl_complex z, double x</var>)<var><a name="index-gsl_005fcomplex_005fpow_005freal-171"></a></var><br>
73
<blockquote><p>This function returns the complex number <var>z</var> raised to the real
74
power <var>x</var>, z^x.
75
</p></blockquote></div>
78
— Function: gsl_complex <b>gsl_complex_exp</b> (<var>gsl_complex z</var>)<var><a name="index-gsl_005fcomplex_005fexp-172"></a></var><br>
79
<blockquote><p>This function returns the complex exponential of the complex number
80
<var>z</var>, \exp(z).
81
</p></blockquote></div>
84
— Function: gsl_complex <b>gsl_complex_log</b> (<var>gsl_complex z</var>)<var><a name="index-gsl_005fcomplex_005flog-173"></a></var><br>
85
<blockquote><p><a name="index-logarithm-of-complex-number-174"></a>This function returns the complex natural logarithm (base e) of
86
the complex number <var>z</var>, \log(z). The branch cut is the
88
</p></blockquote></div>
91
— Function: gsl_complex <b>gsl_complex_log10</b> (<var>gsl_complex z</var>)<var><a name="index-gsl_005fcomplex_005flog10-175"></a></var><br>
92
<blockquote><p>This function returns the complex base-10 logarithm of
93
the complex number <var>z</var>, <!-- {$\log_{10}(z)$} -->
95
</p></blockquote></div>
98
— Function: gsl_complex <b>gsl_complex_log_b</b> (<var>gsl_complex z, gsl_complex b</var>)<var><a name="index-gsl_005fcomplex_005flog_005fb-176"></a></var><br>
99
<blockquote><p>This function returns the complex base-<var>b</var> logarithm of the complex
100
number <var>z</var>, \log_b(z). This quantity is computed as the ratio
102
</p></blockquote></div>