# Concurrency::precise_math Namespace

Visual Studio 2015

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

Functions in the `precise_math` namespace are C99 compliant. Both single precision and double precision versions of each function are included. For example, `acos` is the double-precision version and `acosf` is the single-precision version. These functions, including the single-precision functions, require extended double-precision support on the accelerator. You can use the accelerator::supports_double_precision Data Member to determine if you can run these functions on a specific accelerator.

## Syntax

```namespace precise_math;

```

## Members

### Functions

NameDescription
acos FunctionOverloaded. Calculates the arccosine of the argument
acosf FunctionCalculates the arccosine of the argument
acosh FunctionOverloaded. Calculates the inverse hyperbolic cosine of the argument
acoshf FunctionCalculates the inverse hyperbolic cosine of the argument
asin FunctionOverloaded. Calculates the arcsine of the argument
asinf FunctionCalculates the arcsine of the argument
asinh FunctionOverloaded. Calculates the inverse hyperbolic sine of the argument
asinhf FunctionCalculates the inverse hyperbolic sine of the argument
atan FunctionOverloaded. Calculates the arctangent of the argument
atan2 FunctionOverloaded. Calculates the arctangent of _Y/_X
atan2f FunctionCalculates the arctangent of _Y/_X
atanf FunctionCalculates the arctangent of the argument
atanh FunctionOverloaded. Calculates the inverse hyperbolic tangent of the argument
atanhf FunctionCalculates the inverse hyperbolic tangent of the argument
cbrt FunctionOverloaded. Computes the real cube root of the argument
cbrtf FunctionComputes the real cube root of the argument
ceil FunctionOverloaded. Calculates the ceiling of the argument
ceilf FunctionCalculates the ceiling of the argument
copysign FunctionOverloaded. Produces a value with the magnitude of _X and the sign of _Y
copysignf FunctionProduces a value with the magnitude of _X and the sign of _Y
cos FunctionOverloaded. Calculates the cosine of the argument
cosf FunctionCalculates the cosine of the argument
cosh FunctionOverloaded. Calculates the hyperbolic cosine value of the argument
coshf FunctionCalculates the hyperbolic cosine value of the argument
cospi FunctionOverloaded. Calculates the cosine value of pi * _X
cospif FunctionCalculates the cosine value of pi * _X
erf FunctionOverloaded. Computes the error function of _X
erfc FunctionOverloaded. Computes the complementary error function of _X
erfcf FunctionComputes the complementary error function of _X
erfcinv FunctionOverloaded. Computes the inverse complementary error function of _X
erfcinvf FunctionComputes the inverse complementary error function of _X
erff FunctionComputes the error function of _X
erfinv FunctionOverloaded. Computes the inverse error function of _X
erfinvf FunctionComputes the inverse error function of _X
exp FunctionOverloaded. Calculates the base-e exponential of the argument
exp10 FunctionOverloaded. Calculates the base-10 exponential of the argument
exp10f FunctionCalculates the base-10 exponential of the argument
exp2 FunctionOverloaded. Calculates the base-2 exponential of the argument
exp2f FunctionCalculates the base-2 exponential of the argument
expf FunctionCalculates the base-e exponential of the argument
expm1 FunctionOverloaded. Calculates the base-e exponential of the argument, minus 1
expm1f FunctionCalculates the base-e exponential of the argument, minus 1
fabs FunctionOverloaded. Returns the absolute value of the argument
fabsf FunctionReturns the absolute value of the argument
fdim FunctionOverloaded. Determines the positive difference between the arguments
fdimf FunctionDetermines the positive difference between the arguments
floor FunctionOverloaded. Calculates the floor of the argument
floorf FunctionCalculates the floor of the argument
fma FunctionOverloaded. Compute (_X * _Y) + _Z, rounded as one ternary operation
fmaf FunctionCompute (_X * _Y) + _Z, rounded as one ternary operation
fmax FunctionOverloaded. Determine the maximum numeric value of the arguments
fmaxf FunctionDetermine the maximum numeric value of the arguments
fmin FunctionOverloaded. Determine the minimum numeric value of the arguments
fminf FunctionDetermine the minimum numeric value of the arguments
fmod Function (C++ AMP)Overloaded. Calculates the floating-point remainder of _X/_Y
fmodf FunctionCalculates the floating-point remainder of _X/_Y
fpclassify FunctionOverloaded. Classifies the argument value as NaN, infinite, normal, subnormal, zero
frexp FunctionOverloaded. Gets the mantissa and exponent of _X
frexpf FunctionGets the mantissa and exponent of _X
hypot FunctionOverloaded. Computes the square root of the sum of the squares of _X and _Y
hypotf FunctionComputes the square root of the sum of the squares of _X and _Y
ilogb FunctionOverloaded. Extract the exponent of _X as a signed int value
ilogbf FunctionExtract the exponent of _X as a signed int value
isfinite FunctionOverloaded. Determines whether the argument has a finite value
isinf FunctionOverloaded. Determines whether the argument is an infinity
isnan FunctionOverloaded. Determines whether the argument is a NaN
isnormal FunctionOverloaded. Determines whether the argument is a normal
ldexp FunctionOverloaded. Computes a real number from the mantissa and exponent
ldexpf FunctionComputes a real number from the mantissa and exponent
lgamma FunctionOverloaded. Computes the natural logarithm of the absolute value of gamma of the argument
lgammaf FunctionComputes the natural logarithm of the absolute value of gamma of the argument
log FunctionOverloaded. Calculates the base-e logarithm of the argument
log10 FunctionOverloaded. Calculates the base-10 logarithm of the argument
log10f FunctionCalculates the base-10 logarithm of the argument
log1p FunctionOverloaded. Calculates the base-e logarithm of 1 plus the argument
log1pf FunctionCalculates the base-e logarithm of 1 plus the argument
log2 FunctionOverloaded. Calculates the base-2 logarithm of the argument
log2f FunctionCalculates the base-2 logarithm of the argument
logb FunctionOverloaded. Extracts the exponent of _X, as a signed integer value in floating-point format
logbf FunctionExtracts the exponent of _X, as a signed integer value in floating-point format
logf FunctionCalculates the base-e logarithm of the argument
modf FunctionOverloaded. Splits _X into fractional and integer parts.
modff FunctionSplits _X into fractional and integer parts.
nan FunctionReturns a quiet NaN
nanf FunctionReturns a quiet NaN
nearbyint FunctionOverloaded. Rounds the argument to an integer value in floating-point format, using the current rounding direction.
nearbyintf FunctionRounds the argument to an integer value in floating-point format, using the current rounding direction.
nextafter FunctionOverloaded. Determine the next representable value, in the type of the function, after _X in the direction of _Y
nextafterf FunctionDetermine the next representable value, in the type of the function, after _X in the direction of _Y
phi FunctionOverloaded. Returns the cumulative distribution function of the argument
phif FunctionReturns the cumulative distribution function of the argument
pow FunctionOverloaded. Calculates _X raised to the power of _Y
powf FunctionCalculates _X raised to the power of _Y
probit FunctionOverloaded. Returns the inverse cumulative distribution function of the argument
probitf FunctionReturns the inverse cumulative distribution function of the argument
rcbrt FunctionOverloaded. Returns the reciprocal of the cube root of the argument
rcbrtf FunctionReturns the reciprocal of the cube root of the argument
remainder FunctionOverloaded. Computes the remainder: _X REM _Y
remainderf FunctionComputes the remainder: _X REM _Y
remquo FunctionOverloaded. Computes the same remainder as _X REM _Y. Also calculates the lower 23 bits of the integral quotient _X/_Y, and gives that value the same sign as _X/_Y. It stores this signed value in the integer pointed to by _Quo.
remquof FunctionComputes the same remainder as _X REM _Y. Also calculates the lower 23 bits of the integral quotient _X/_Y, and gives that value the same sign as _X/_Y. It stores this signed value in the integer pointed to by _Quo.
round FunctionOverloaded. Rounds _X to the nearest integer
roundf FunctionRounds _X to the nearest integer
rsqrt FunctionOverloaded. Returns the reciprocal of the square root of the argument
rsqrtf FunctionReturns the reciprocal of the square root of the argument
scalb FunctionOverloaded. Multiplies _X by FLT_RADIX to the power _Y
scalbf FunctionMultiplies _X by FLT_RADIX to the power _Y
scalbn FunctionOverloaded. Multiplies _X by FLT_RADIX to the power _Y
scalbnf FunctionMultiplies _X by FLT_RADIX to the power _Y
signbit FunctionOverloaded. Determines whether the sign of _X is negative
signbitf FunctionDetermines whether the sign of _X is negative
sin FunctionOverloaded. Calculates the sine value of the argument
sincos FunctionOverloaded. Calculates sine and cosine value of _X
sincosf FunctionCalculates sine and cosine value of _X
sinf FunctionCalculates the sine value of the argument
sinh FunctionOverloaded. Calculates the hyperbolic sine value of the argument
sinhf FunctionCalculates the hyperbolic sine value of the argument
sinpi FunctionOverloaded. Calculates the sine value of pi * _X
sinpif FunctionCalculates the sine value of pi * _X
sqrt FunctionOverloaded. Calculates the squre root of the argument
sqrtf FunctionCalculates the squre root of the argument
tan FunctionOverloaded. Calculates the tangent value of the argument
tanf FunctionCalculates the tangent value of the argument
tanh FunctionOverloaded. Calculates the hyperbolic tangent value of the argument
tanhf FunctionCalculates the hyperbolic tangent value of the argument
tanpi FunctionOverloaded. Calculates the tangent value of pi * _X
tanpif FunctionCalculates the tangent value of pi * _X
tgamma FunctionOverloaded. Computes the gamma function of _X
tgammaf FunctionComputes the gamma function of _X
trunc FunctionOverloaded. Truncates the argument to the integer component
truncf FunctionTruncates the argument to the integer component

## Requirements

Header: amp_math.h

Namespace: Concurrency

## See Also

Concurrency Namespace (C++ AMP)

Show: