Names specified here
Name Description Notes Source Availability
cbrt() Compute cube root M (·) <tgmath.h> C99 C11
cbrt() Compute cube root (·) <math.h> C99 C11
cbrtf() Compute cube root (·) <math.h> C99 C11
cbrtl() Compute cube root (·) <math.h> C99 C11
cexp() Compute natural exponent ? (·) <complex.h> C99 C11
cexpf() Compute natural exponent ? (·) <complex.h> C99 C11
cexpl() Compute natural exponent ? (·) <complex.h> C99 C11
clog() Compute natural logarithm ? (·) <complex.h> C99 C11
clogf() Compute natural logarithm ? (·) <complex.h> C99 C11
clogl() Compute natural logarithm ? (·) <complex.h> C99 C11
cpow() Compute exponential ? (·) <complex.h> C99 C11
cpowf() Compute exponential ? (·) <complex.h> C99 C11
cpowl() Compute exponential ? (·) <complex.h> C99 C11
csqrt() Compute square root ? (·) <complex.h> C99 C11
csqrtf() Compute square root ? (·) <complex.h> C99 C11
csqrtl() Compute square root ? (·) <complex.h> C99 C11
exp() Compute natural exponent M (·) <tgmath.h> C99 C11
exp() Compute natural exponent (·) <math.h> C89 C90 C95 C99 C11
exp2() Compute base-2 exponent (·) <math.h> C99 C11
exp2() Compute base-2 exponent M (·) <tgmath.h> C99 C11
exp2f() Compute base-2 exponent (·) <math.h> C99 C11
exp2l() Compute base-2 exponent (·) <math.h> C99 C11
expf() Compute natural exponent (·) <math.h> C99 C11
expl() Compute natural exponent (·) <math.h> C99 C11
expm1() Compute natural exponent minus one (·) <math.h> C99 C11
expm1() Compute natural exponent minus one M (·) <tgmath.h> C99 C11
expm1f() Compute natural exponent minus one (·) <math.h> C99 C11
expm1l() Compute natural exponent minus one (·) <math.h> C99 C11
log() Compute natural logarithm M (·) <tgmath.h> C99 C11
log() Compute natural logarithm (·) <math.h> C89 C90 C95 C99 C11
log10() Compute base-10 logarithm (·) <math.h> C99 C11
log10() Compute base-10 logarithm M (·) <tgmath.h> C99 C11
log10f() Compute base-10 logarithm (·) <math.h> C99 C11
log10l() Compute base-10 logarithm (·) <math.h> C99 C11
log1p() Compute natural logarithm (·) <math.h> C99 C11
log1p() Compute natural logarithm M (·) <tgmath.h> C99 C11
log1pf() Compute natural logarithm (·) <math.h> C99 C11
log1pl() Compute natural logarithm (·) <math.h> C99 C11
log2() Compute base-2 logarithm (·) <math.h> C99 C11
log2() Compute base-2 logarithm M (·) <tgmath.h> C99 C11
log2f() Compute base-2 logarithm (·) <math.h> C99 C11
log2l() Compute base-2 logarithm (·) <math.h> C99 C11
logb() Compute native-base logarithm (·) <math.h> C99 C11
logb() Compute native-base logarithm M (·) <tgmath.h> C99 C11
logbf() Compute native-base logarithm (·) <math.h> C99 C11
logbl() Compute native-base logarithm (·) <math.h> C99 C11
logf() Compute natural logarithm (·) <math.h> C99 C11
logl() Compute natural logarithm (·) <math.h> C99 C11
pow() Compute exponential M (·) <tgmath.h> C99 C11
pow() Compute exponential (·) <math.h> C89 C90 C95 C99 C11
powf() Compute exponential (·) <math.h> C99 C11
powl() Compute exponential (·) <math.h> C99 C11
sqrt() Compute square root (·) <math.h> C89 C90 C95 C99 C11
sqrt() Compute square root M (·) <tgmath.h> C99 C11
sqrtf() Compute square root (·) <math.h> C99 C11
sqrtl() Compute square root (·) <math.h> C99 C11

<math.h> declares several functions to raise one number to the power of another (an exponential), and perform the inverse operation (a logarithm).

#include <math.h>
float powf(float x, float y);
double pow(double x, double y);
long double powl(long double x, long double y);
#include <complex.h>
float complex cpowf(float complex x, float complex y);
double complex cpow(double complex x, double complex y);
long double complex cpowl(long double complex x, long double complex y);
#include <tgmath.h>
floating-type pow(floating-type x);

The pow functions take two arguments, x and y, and return x raised to the power of y, xy.

#include <math.h>
float sqrtf(float x);
double sqrt(double x);
long double sqrtl(long double x);
#include <complex.h>
float complex csqrtf(float complex x);
double complex csqrt(double complex x);
long double complex csqrtl(long double complex x);
#include <tgmath.h>
floating-type sqrt(floating-type x);

The sqrt functions return the square root of the argument, √x or x½, equivalent to pow(x, 0.5).

#include <math.h>
float cbrtf(float x);
double cbrt(double x);
long double cbrtl(long double x);
#include <tgmath.h>
real-floating-type cbrt(real-floating-type x);

The cbrt functions return the cube root of the argument, ∛x or x, equivalent to pow(x, 1.0 / 3.0).

#include <math.h>
float expf(float x);
double exp(double x);
long double expl(long double x);
#include <complex.h>
float complex cexpf(float complex x);
double complex cexp(double complex x);
long double complex cexpl(long double complex x);
#include <tgmath.h>
floating-type exp(floating-type x);

The exp functions return e raised to the power of the argument, ex, equivalent to pow(e, x).

#include <math.h>
float exp2f(float x);
double exp2(double x);
long double exp2l(long double x);
#include <tgmath.h>
real-floating-type exp2(real-floating-type x);

Functions with names matching ^cexp2(|f|l)$ might be added to <complex.h>.

The exp2 functions return 2 raised to the power of the argument, 2x, equivalent to pow(2.0, x).

#include <math.h>
float expm1f(float x);
double expm1(double x);
long double expm1l(long double x);
#include <tgmath.h>
real-floating-type expm1(real-floating-type x);

Functions with names matching ^cexpm1(|f|l)$ might be added to <complex.h>.

The expm1 functions return one less than e raised to the power of the argument, ex−1, equivalent to exp(x) - 1.0.

#include <math.h>
float logf(float x);
double log(double x);
long double logl(long double x);
#include <complex.h>
float complex clogf(float complex x);
double complex clog(double complex x);
long double complex clogl(long double complex x);
#include <tgmath.h>
floating-type log(floating-type x);

The log functions return the natural (base-e) logarithm of the argument, ln x or loge x.

#include <math.h>
float log1pf(float x);
double log1p(double x);
long double log1pl(long double x);
#include <tgmath.h>
real-floating-type log1p(real-floating-type x);

Functions with names matching ^clog1p(|f|l)$ might be added to <complex.h>.

The log functions return the natural (base-e) logarithm of one plus the argument, ln (x+1) or loge (x+1), equivalent to log(x + 1.0).

#include <math.h>
float log2f(float x);
double log2(double x);
long double log2l(long double x);
#include <tgmath.h>
real-floating-type log2(real-floating-type x);

Functions with names matching ^clog2(|f|l)$ might be added to <complex.h>.

The log2 functions return the base-2 logarithm of the argument, log₂ x.

#include <math.h>
float log10f(float x);
double log10(double x);
long double log10l(long double x);
#include <tgmath.h>
real-floating-type log10(real-floating-type x);

Functions with names matching ^clog10(|f|l)$ might be added to <complex.h>.

The log10 functions return the base-10 logarithm of the argument, log₁₀ x.

#include <math.h>
float logbf(float x);
double logb(double x);
long double logbl(long double x);
#include <tgmath.h>
real-floating-type logb(real-floating-type x);

The logb functions return the base-b logarithm of the argument, logb x, where b is FLT_RADIX.


CHaR
Sitemap Supported
Site format updated 2024-06-05T22:37:07.391+0000
Data updated 1970-01-01T00:00:00.000+0000
Page updated 2024-06-10T19:54:01.041+0000