carta
cexpf(3)

cexpf3

Complex exponential functions

Part of cexp(3).

Usage

double complex

float complex

long double complex

Library

Math Library (libm, -lm)

Overview

The cexp(), cexpf(), and cexpl() functions compute the complex exponential of z, also known ascis( z).

Return values

For real numbers x and y, cexp() behaves according to Euler's formula:

cexp(x + I*y) =(e** x, *cos(y)) + ( I *e** x *sin( y))

Generally speaking, infinities, zeroes and s are handled as would be expected from this identity given the usual rules of floating-point arithmetic. However, care is taken to avoid generating s when they are not deserved. For example, mathematically we expect that cimag(cexp(x + I*0, Fc) = 0 regardless of the value ofx and cexp() preserves this identity even if, x is or . Likewise, cexp(- + I*y) = 0 and creal(cexp( + I*y, Fc) = for anyy (even though the latter property is only mathematically true for representable, y If, y is not finite, the sign of the result is indeterminate.

History

  • FreeBSD 16.0-CURRENT (2026-10-27) to FreeBSD 13.3-RELEASE: the text shown here
  • FreeBSD 13.2-RELEASE to FreeBSD 13.1-RELEASE
  • 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

Standards

The cexp(), cexpf(), and cexpl() functions conform to ISO/IEC 9899:1999 (“ISO C99”).

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