xref: /openbsd-src/lib/libm/man/conj.3 (revision bf198cc6eba0ca1f6d79f71e8e2243d386241fa8)
1*bf198cc6Smillert.\"	$OpenBSD: conj.3,v 1.5 2019/01/25 00:19:25 millert Exp $
249cbc55eSmillert.\"
3*bf198cc6Smillert.\" Copyright (c) 2010 Todd C. Miller <millert@openbsd.org>
449cbc55eSmillert.\"
549cbc55eSmillert.\" Permission to use, copy, modify, and distribute this software for any
649cbc55eSmillert.\" purpose with or without fee is hereby granted, provided that the above
749cbc55eSmillert.\" copyright notice and this permission notice appear in all copies.
849cbc55eSmillert.\"
949cbc55eSmillert.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1049cbc55eSmillert.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1149cbc55eSmillert.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1249cbc55eSmillert.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1349cbc55eSmillert.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1449cbc55eSmillert.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1549cbc55eSmillert.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1649cbc55eSmillert.\"
17*bf198cc6Smillert.Dd $Mdocdate: January 25 2019 $
1849cbc55eSmillert.Dt CONJ 3
1949cbc55eSmillert.Os
2049cbc55eSmillert.Sh NAME
2149cbc55eSmillert.Nm conj ,
222bfdbafeSmartynas.Nm conjf ,
232bfdbafeSmartynas.Nm conjl
2449cbc55eSmillert.Nd compute the complex conjugate
2549cbc55eSmillert.Sh SYNOPSIS
2686f9d4cdStedu.In complex.h
2749cbc55eSmillert.Ft double complex
2849cbc55eSmillert.Fn conj "double complex z"
2949cbc55eSmillert.Ft float complex
3049cbc55eSmillert.Fn conjf "float complex z"
312bfdbafeSmartynas.Ft long double complex
322bfdbafeSmartynas.Fn conjl "long double complex z"
3349cbc55eSmillert.Sh DESCRIPTION
3449cbc55eSmillertThe
352bfdbafeSmartynas.Fn conj ,
3649cbc55eSmillert.Fn conjf
372bfdbafeSmartynasand
382bfdbafeSmartynas.Fn conjl
393275c9e0Sjmcfunctions reverse the sign of the imaginary part of
4049cbc55eSmillert.Fa z ,
4149cbc55eSmillertproducing the complex conjugate.
4249cbc55eSmillert.Sh RETURN VALUES
4349cbc55eSmillertThe
442bfdbafeSmartynas.Fn conj ,
4549cbc55eSmillert.Fn conjf
462bfdbafeSmartynasand
472bfdbafeSmartynas.Fn conjl
4849cbc55eSmillertfunctions return the complex conjugate of the complex number
4949cbc55eSmillert.Fa z .
502bfdbafeSmartynas.Sh SEE ALSO
512bfdbafeSmartynas.Xr carg 3
5249cbc55eSmillert.Sh STANDARDS
5349cbc55eSmillertThe
542bfdbafeSmartynas.Fn conj ,
5549cbc55eSmillert.Fn conjf
563275c9e0Sjmcand
573275c9e0Sjmc.Fn conjl
5849cbc55eSmillertfunctions conform to
5949cbc55eSmillert.St -isoC-99 .
60