Zum Inhalt springen

C++-Referenz/ Standardbibliothek/ Mathematisch

Aus Wikibooks
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.

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

atan2

[Bearbeiten]
// Header: cmath
float atan2(float x, float y);
double atan2(double x, double y);
long double atan2(long double x, long double y);
// Header: cmath
float ceil(float num);
double ceil(double num);
long double ceil(long double num);
// Header: cmath
float cos(float arg);
double cos(double arg);
long double cos(long double arg);
// Header: cmath
float cosh(float arg);
double cosh(double arg);
long double cosh(long double arg);
// Header: cmath
float exp(float arg);
double exp(double arg);
long double exp(long double arg);
// Header: cmath
float fabs(float num);
double fabs(double num);
long double fabs(long double num);

floor

[Bearbeiten]
// Header: cmath
float floor(float num);
double floor(double num);
long double floor(long double num);
// Header: cmath
float fmod(float x, float y);
double fmod(double x, double y);
long double fmod(long double x, long double y);

frexp

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

ldexp

[Bearbeiten]
// Header: cmath
float ldexp(float num, int exp);
double ldexp(double num, int exp);
long double ldexp(long double num, int exp);
// Header: cmath
float log(float num);
double log(double num);
long double log(long double num);

log10

[Bearbeiten]
// Header: cmath
float log10(float num);
double log10(double num);
long double log10(long double num);
// Header: cmath
float modf(float num, float *i);
double modf(double num, double *i);
long double modf(long double num, long double *i);
// 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.

// Header: cmath
float sin(float arg);
double sin(double arg);
long double sin(long double arg);
// Header: cmath
float sinh(float arg);
double sinh(double arg);
long double sinh(long double arg);
// Header: cmath
float sqrt(float num);
double sqrt(double num);
long double sqrt(long double num);

Berechnet die Quadratwurzel von num.

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