Exponential Functions

The Intel Math library supports the following exponential functions:

CBRT

Description: The cbrt function returns the cube root of x.

Calling interface:

long double cbrtl(long double x);
double cbrt(double x);
float cbrtf(float x);

EXP

Description: The exp function returns e raised to the x power, ex.

Calling interface:

long double expl(long double x);
double exp(double x);
float expf(float x);

EXP10

Description: The exp10 function returns 10 raised to the x power, 10x.

Calling interface:

long double exp10l(long double x);
double exp10(double x);
float exp10f(float x);

EXP2

Description: The exp2 function returns 2 raised to the x power, 2x.

Calling interface:

long double exp2l(long double x);
double exp2(double x);
float exp2f(float x);

EXPM1

Description: The expm1 function returns e raised to the x power minus 1, ex-1.

Calling interface:

long double expm1l(long double x);
double expm1(double x);
float expm1f(float x);

FREXP

Description: The frexp function converts a floating-point number x into signed normalized fraction in [1/2, 1) multiplied by an integral power of two. The signed normalized fraction is returned, and the integer exponent stored at location exp.

Calling interface:

long double frexp(long double x, int *exp);
double frexp(double x, int *exp);
float frexpf(float x, int *exp);

HYPOT

Description: The hypot function returns the value of the square root of the sum of the squares.

Calling interface:

long double hypotl(long double x, long double y);
double hypot(double x, double y);
float hypotf(float x, float y);

ILOGB

Description: The ilogb function returns the exponent of x base two as a signed int value.

Calling interface:

int ilogbl(long double x);
int ilogb(double x);
int ilogbf(float x);

LDEXP

Description: The ldexp function returns the value of x times 2 raised to the power exp, x*2exp.

Calling interface:

long double ldexpl(long double x, int exp);
double ldexp(double x, int exp);
float ldexpf(float x, int exp);

LOG

Description: The log function returns the natural log of x, ln(x).

Calling interface:

long double logl(long double x);
double log(double x);
float logf(float x);

LOG10

Description: The log10 function returns the base-10 log of x, log10(x).

Calling interface:

long double log10l(long double x);
double log10(double x);
float log10f(float x);

LOG1P

Description: The log1p function returns the natural log of (x+1), ln(x + 1).

Calling interface:

long double log1pl(long double x);
double log1p(double x);
float log1pf(float x);

LOG2

Description: The log2 function returns the base-2 log of x, log2(x).

Calling interface:

long double log2l(long double x);
double log2(double x);
float log2f(float x;

LOGB

Description: The logb function returns the signed exponent of x.

Calling interface:

long double logbl(long double x);
double logb(double x);
float logbf(float x);

POW

Description: The pow function returns x raised to the power of y, xy.

Calling interface:

long double powl(double x, double y); /* Itanium®-based systems only */
double pow(double x, double y);
float powf(float x, float y);

SCALB

Description: The scalb function returns x*2y, where y is a floating-point value.

Calling interface:

long double scalbl(long double x, long double y);
double scalb(double x, double y);
float scalbf(float x, float y);

SCALBN

Description: The scalbn function returns x*2y, where y is an integer value.

Calling interface:

long double scalbnl (long double x, int y);
double scalbn(double x, int y);
float scalbnf(float x, int y);

SCALBLN

Description: The scalbln function returns x*2n.

Calling interface:

long double scalblnl (long double x, long int n);
double scalbln(double x, long int n);
float scalblnf(float x, long int n);

SQRT

Description: The sqrt function returns the correctly rounded square root.

Calling interface:

long double sqrtl(long double x);
double sqrt(double x);
float sqrtf(float x);