Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cimag(3m) [sunos man page]

cimag(3M)						  Mathematical Library Functions						 cimag(3M)

NAME
cimag, cimagf, cimagl - complex imaginary functions SYNOPSIS
cc [ flag... ] file... -lm [ library... ] #include <complex.h> double cimag(double complex z); float cimagf(float complex z); long double cimagl(long double complex z); DESCRIPTION
These functions compute the imaginary part of z. RETURN VALUES
These functions return the imaginary part value (as a real). ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
carg(3M), complex.h(3HEAD), conj(3M), cproj(3M), creal(3M), attributes(5), standards(5) SunOS 5.10 1 Sep 2002 cimag(3M)

Check Out this Related Man Page

CIMAG(3)						   BSD Library Functions Manual 						  CIMAG(3)

NAME
cimag, cimagf, cimagl, conj, conjf, conjl, cproj, cprojf, cprojl, creal, crealf, creall -- functions to manipulate complex numbers LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <complex.h> double cimag(double complex z); float cimagf(float complex z); long double cimagl(long double complex z); double complex conj(double complex z); float complex conjf(float complex z); long double complex conjl(long double complex z); double complex cproj(double complex z); float complex cprojf(float complex z); long double complex cprojl(long double complex z); double creal(double complex z); float crealf(float complex z); long double creall(long double complex z); DESCRIPTION
Let a+b*i denote the complex number z. The creal() functions return the real part a, and the cimag() functions return the imaginary part b. The conj() functions return the complex conjugate a-b*i. The cproj() functions return the projection onto the Riemann sphere. If z contains an infinite component, then the result is infinity +- 0*i, where the (zero) imaginary part of the result has the same sign as b. Otherwise, the result is z. These functions do not signal any floating point exceptions. STANDARDS
The cimag(), conj(), cproj(), and creal() functions conform to ISO/IEC 9899:1999 (``ISO C99''). HISTORY
The cimag(), conj() and creal() functions first appeared in FreeBSD 5.3. The cproj() functions appeared in FreeBSD 8.0. BSD
August 7, 2008 BSD
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Awk Script Counting of Correct vs. Error Responses

Hello, I have been trying to use an awk script to parse out correct and incorrect answers in a simple tab-delimited text file. I am trying to compare the user's response to the stimulus presented (in this case, an arrow pointing left or right; e.g., "<--" vs. "-->"). I have the data for the... (6 Replies)
Discussion started by: Jahn
6 Replies

2. Shell Programming and Scripting

Help with AWK script please

Hello All, I am working on a code with my adviser,but have run into some problems. I was wondering: Can anyone see what I am doing wrong and/or point me in the right direction. I have an experiment where objects are presented in a circular display, and rotate clockwise or counter depending on... (4 Replies)
Discussion started by: jgeller1
4 Replies

3. Programming

libcvd install problem

Hi I'm trying to install libcvd libraries (running Ubuntu 10.10) but get errors, I guesss its saying I miss dc1394v1 and ffmpeg. Altough when looking in synaptic manager I appear to have ffmpeg and libdc1394 (version 2). When I do ./config, after all the checks, I get: Options:... (3 Replies)
Discussion started by: mdop
3 Replies

4. Shell Programming and Scripting

Perl:: mass replacement of converting C code formats to tgmath.h

hello, i have a lot of C old code I'm updating to C11 with tgmath.h for generic math. the old code has very specific types, real and complex, like cabsl, csinhl, etc usually for simple bulk replacements i would do something simple like this perl -pi -e 's/cosl/cos/g' *.c the reference... (0 Replies)
Discussion started by: f77hack
0 Replies