---
name: "cexp2"
section: "3"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/cexp2"
---

# cexp2(3)

base-2 exponent of a complex number

## NAME

cexp2, cexp2f, cexp2l - base-2 exponent of a complex number

## LIBRARY

Math library (*libm*, *-lm*)

## SYNOPSIS

```
#include <complex.h>
```

**double complex cexp2(double complex** *z***);** **float complex cexp2f(float complex** *z***);** **long double complex cexp2l(long double complex** *z***);**

## DESCRIPTION

The function returns 2 raised to the power of *z*.

## STANDARDS

These function names are reserved for future use in C99.

As at glibc 2.31, these functions are not provided in glibc.

## SEE ALSO

[**cabs**(3)](/cabs/3.md), [**cexp**(3)](/cexp/3.md), [**clog10**(3)](/clog10/3.md), [**complex**(7)](/complex/7.md)
