carta
cimagf(3)

cimagf3

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
  • FreeBSD 7.4-RELEASE
  • FreeBSD 7.3-RELEASE
  • FreeBSD 7.2-RELEASE
  • FreeBSD 7.1-RELEASE
  • FreeBSD 7.0-RELEASE
  • FreeBSD 6.4-RELEASE
  • FreeBSD 6.3-RELEASE to FreeBSD 6.0-RELEASE
  • FreeBSD 5.5-RELEASE to FreeBSD 5.4-RELEASE
  • FreeBSD 5.3-RELEASE

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.

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.