1*bf198cc6Smillert.\" $OpenBSD: cimag.3,v 1.4 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 CIMAG 3 1949cbc55eSmillert.Os 2049cbc55eSmillert.Sh NAME 2149cbc55eSmillert.Nm cimag , 222bfdbafeSmartynas.Nm cimagf , 232bfdbafeSmartynas.Nm cimagl 2449cbc55eSmillert.Nd compute the imaginary part of a complex number 2549cbc55eSmillert.Sh SYNOPSIS 2686f9d4cdStedu.In complex.h 2749cbc55eSmillert.Ft double 2849cbc55eSmillert.Fn cimag "double complex z" 2949cbc55eSmillert.Ft float 3049cbc55eSmillert.Fn cimagf "float complex z" 312bfdbafeSmartynas.Ft long double 322bfdbafeSmartynas.Fn cimagl "long double complex z" 3349cbc55eSmillert.Sh DESCRIPTION 3449cbc55eSmillertThe 352bfdbafeSmartynas.Fn cimag , 3649cbc55eSmillert.Fn cimagf 372bfdbafeSmartynasand 382bfdbafeSmartynas.Fn cimagl 3949cbc55eSmillertfunctions compute the imaginary part of 4049cbc55eSmillert.Fa z . 4149cbc55eSmillert.Sh RETURN VALUES 4249cbc55eSmillertThe 432bfdbafeSmartynas.Fn cimag , 4449cbc55eSmillert.Fn cimagf 452bfdbafeSmartynasand 462bfdbafeSmartynas.Fn cimagl 4749cbc55eSmillertfunctions return the imaginary part of the complex number 4849cbc55eSmillert.Fa z 4949cbc55eSmillertas a real number. 502bfdbafeSmartynas.Sh SEE ALSO 512bfdbafeSmartynas.Xr carg 3 5249cbc55eSmillert.Sh STANDARDS 5349cbc55eSmillertThe 542bfdbafeSmartynas.Fn cimag , 5549cbc55eSmillert.Fn cimagf 562bfdbafeSmartynasand 572bfdbafeSmartynas.Fn cimagl 5849cbc55eSmillertfunctions conform to 5949cbc55eSmillert.St -isoC-99 . 60