cprojl3
Functions to manipulate complex numbers
Part of cimag(3).
Usage
double
float
long double
double complex
float complex
long double
complex
double complex
float complex
long double
complex
double
float
long double
Library
Math Library (libm, -lm)
Overview
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 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.
History
- FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 13.3-RELEASE: the text shown here
- FreeBSD 13.2-RELEASE to FreeBSD 13.0-RELEASE
- FreeBSD 12.4-RELEASE
- FreeBSD 12.3-RELEASE
- FreeBSD 12.2-RELEASE
- FreeBSD 12.1-RELEASE
- FreeBSD 12.0-RELEASE
- FreeBSD 11.4-RELEASE
- FreeBSD 11.3-RELEASE
- FreeBSD 11.2-RELEASE
- FreeBSD 11.1-RELEASE
- FreeBSD 11.0-RELEASE
- FreeBSD 10.4-RELEASE
- FreeBSD 10.3-RELEASE
- FreeBSD 10.2-RELEASE
- FreeBSD 10.1-RELEASE
- FreeBSD 10.0-RELEASE
- FreeBSD 9.3-RELEASE
- FreeBSD 9.2-RELEASE
- FreeBSD 9.1-RELEASE
- FreeBSD 9.0-RELEASE
- FreeBSD 8.4-RELEASE
- FreeBSD 8.3-RELEASE
- FreeBSD 8.2-RELEASE
- FreeBSD 8.1-RELEASE
- FreeBSD 8.0-RELEASE