Zum Inhalt springen

# C++-Referenz/ Standardbibliothek/ Mathematisch

Alte Seite

Die Arbeit am Buch »C++-Referenz« wurde vom Hauptautor eingestellt. Ein Lehrbuch zum Thema C++ ist unter »C++-Programmierung« zu finden. Eine sehr umfangreiche und gute Referenz gibt es unter cppreference.com.

Diese Seite beschreibt C++98, einen stark veralteten Standard. Aktuelle Referenz.

## `acos`

```// Header: cmath
float acos(float arg);
double acos(double arg);
long double acos(long double arg);
```

## `asin`

```// Header: cmath
float asin(float arg);
double asin(double arg);
long double asin(long double arg);
```

## `atan`

```// Header: cmath
float atan(float arg);
double atan(double arg);
long double atan(long double arg);
```

## `atan2`

```// Header: cmath
float atan2(float x, float y);
double atan2(double x, double y);
long double atan2(long double x, long double y);
```

## `ceil`

```// Header: cmath
float ceil(float num);
double ceil(double num);
long double ceil(long double num);
```

## `cos`

```// Header: cmath
float cos(float arg);
double cos(double arg);
long double cos(long double arg);
```

## `cosh`

```// Header: cmath
float cosh(float arg);
double cosh(double arg);
long double cosh(long double arg);
```

## `exp`

```// Header: cmath
float exp(float arg);
double exp(double arg);
long double exp(long double arg);
```

## `fabs`

```// Header: cmath
float fabs(float num);
double fabs(double num);
long double fabs(long double num);
```

## `floor`

```// Header: cmath
float floor(float num);
double floor(double num);
long double floor(long double num);
```

## `fmod`

```// Header: cmath
float fmod(float x, float y);
double fmod(double x, double y);
long double fmod(long double x, long double y);
```

## `frexp`

```// Header: cmath
float frexp(float num, int *exp);
double frexp(double num, int *exp);
long double frexp(long double num, int *exp);
```

## `ldexp`

```// Header: cmath
float ldexp(float num, int exp);
double ldexp(double num, int exp);
long double ldexp(long double num, int exp);
```

## `log`

```// Header: cmath
float log(float num);
double log(double num);
long double log(long double num);
```

## `log10`

```// Header: cmath
float log10(float num);
double log10(double num);
long double log10(long double num);
```

## `modf`

```// Header: cmath
float modf(float num, float *i);
double modf(double num, double *i);
long double modf(long double num, long double *i);
```

## `pow`

```// Header: cmath
float pow(float base, int exp);
float pow(float base, float exp);
double pow(double base, int exp);
double pow(double base, double exp);
long double pow(long double base, int exp);
long double pow(long double base, long double exp);
```

Berechnet die Potenz zur Basis base mit dem Exponenten exp.

## `sin`

```// Header: cmath
float sin(float arg);
double sin(double arg);
long double sin(long double arg);
```

## `sinh`

```// Header: cmath
float sinh(float arg);
double sinh(double arg);
long double sinh(long double arg);
```

## `sqrt`

```// Header: cmath
float sqrt(float num);
double sqrt(double num);
long double sqrt(long double num);
```

## `tan`

```// Header: cmath
float tan(float arg);
double tan(double arg);
long double tan(long double arg);
```

## `tanh`

```// Header: cmath
float tanh(float arg);
double tanh(double arg);
long double tanh(long double arg);
```