---
name: "ccosf"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/ccos"
---

# ccosf(3)

complex trigonometric functions

Part of [ccos(3)](/ccos/3.md).

## NAME

**ccos**, **ccosf**, **csin**, **csinf**, **ctan**, **ctanf** – complex trigonometric functions

## LIBRARY

Math Library (libm, -lm)

## SYNOPSIS

**#include \<complex.h\>**

*double* *complex*\

**ccos**(*double complex z*);

*float* *complex*\

**ccosf**(*float complex z*);

*double* *complex*\

**csin**(*double complex z*);

*float* *complex*\

**csinf**(*float complex z*);

*double* *complex*\

**ctan**(*double complex z*);

*float* *complex*\

**ctanf**(*float complex z*);

## DESCRIPTION

The **ccos**(), **csin**(), and **ctan**() functions compute the cosine, sine, and tangent of the complex number *z*, respectively. The **ccosf**(), **csinf**(), and **ctanf**() functions perform the same operations in *float* precision.

## SEE ALSO

[cacos(3)](/cacos/3.md), [ccosh(3)](/ccosh/3.md), [complex(3)](/complex/3.md), [cos(3)](/cos/3.md), [math(3)](/math/3.md), [sin(3)](/sin/3.md), [tan(3)](/tan/3.md)

## STANDARDS

These functions conform to ISO/IEC 9899:1999 (“ISO C99”).
