1.\" $OpenBSD: cimag.3,v 1.2 2011/07/20 17:50:43 martynas Exp $ 2.\" 3.\" Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: July 20 2011 $ 18.Dt CIMAG 3 19.Os 20.Sh NAME 21.Nm cimag , 22.Nm cimagf , 23.Nm cimagl 24.Nd compute the imaginary part of a complex number 25.Sh SYNOPSIS 26.Fd #include <complex.h> 27.Ft double 28.Fn cimag "double complex z" 29.Ft float 30.Fn cimagf "float complex z" 31.Ft long double 32.Fn cimagl "long double complex z" 33.Sh DESCRIPTION 34The 35.Fn cimag , 36.Fn cimagf 37and 38.Fn cimagl 39functions compute the imaginary part of 40.Fa z . 41.Sh RETURN VALUES 42The 43.Fn cimag , 44.Fn cimagf 45and 46.Fn cimagl 47functions return the imaginary part of the complex number 48.Fa z 49as a real number. 50.Sh SEE ALSO 51.Xr carg 3 52.Sh STANDARDS 53The 54.Fn cimag , 55.Fn cimagf 56and 57.Fn cimagl 58functions conform to 59.St -isoC-99 . 60