Debian Codegraph @

upstream/debian-unstable/man3/conj.3

raw
1 '\" t
2 .\" Copyright 2002, Walter Harms <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-1.0-or-later
6 .\"
7 .TH conj 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 conj, conjf, conjl \- calculate the complex conjugate
10 .SH LIBRARY
11 Math library
12 .RI ( libm ,\~ \-lm )
13 .SH SYNOPSIS
14 .nf
15 .B #include <complex.h>
16 .P
17 .BI "double complex conj(double complex " z );
18 .BI "float complex conjf(float complex " z );
19 .BI "long double complex conjl(long double complex " z );
20 .fi
21 .SH DESCRIPTION
22 These functions return the complex conjugate value of
23 .IR z .
24 That is the value obtained by changing the sign of the imaginary part.
25 .P
26 One has:
27 .P
28 .in +4n
29 .EX
30 cabs(z) = csqrt(z * conj(z))
31 .EE
32 .in
33 .SH ATTRIBUTES
34 For an explanation of the terms used in this section, see
35 .BR attributes (7).
36 .TS
37 allbox;
38 lbx lb lb
39 l l l.
40 Interface Attribute Value
41 T{
42 .na
43 .nh
44 .BR conj (),
45 .BR conjf (),
46 .BR conjl ()
47 T} Thread safety MT-Safe
48 .TE
49 .SH STANDARDS
50 C11, POSIX.1-2008.
51 .SH HISTORY
52 glibc 2.1.
53 C99, POSIX.1-2001.
54 .SH SEE ALSO
55 .BR cabs (3),
56 .BR csqrt (3),
57 .BR complex (7)