# 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.

```
namespace precise_math;
```

#### Parameters

### Functions

Name | Description |
---|---|

acos Function | Overloaded. Calculates the arccosine of the argument |

acosf Function | Calculates the arccosine of the argument |

acosh Function | Overloaded. Calculates the inverse hyperbolic cosine of the argument |

acoshf Function | Calculates the inverse hyperbolic cosine of the argument |

asin Function | Overloaded. Calculates the arcsine of the argument |

asinf Function | Calculates the arcsine of the argument |

asinh Function | Overloaded. Calculates the inverse hyperbolic sine of the argument |

asinhf Function | Calculates the inverse hyperbolic sine of the argument |

atan Function | Overloaded. Calculates the arctangent of the argument |

atan2 Function | Overloaded. Calculates the arctangent of _Y/_X |

atan2f Function | Calculates the arctangent of _Y/_X |

atanf Function | Calculates the arctangent of the argument |

atanh Function | Overloaded. Calculates the inverse hyperbolic tangent of the argument |

atanhf Function | Calculates the inverse hyperbolic tangent of the argument |

cbrt Function | Overloaded. Computes the real cube root of the argument |

cbrtf Function | Computes the real cube root of the argument |

ceil Function | Overloaded. Calculates the ceiling of the argument |

ceilf Function | Calculates the ceiling of the argument |

copysign Function | Overloaded. Produces a value with the magnitude of _X and the sign of _Y |

copysignf Function | Produces a value with the magnitude of _X and the sign of _Y |

cos Function | Overloaded. Calculates the cosine of the argument |

cosf Function | Calculates the cosine of the argument |

cosh Function | Overloaded. Calculates the hyperbolic cosine value of the argument |

coshf Function | Calculates the hyperbolic cosine value of the argument |

cospi Function | Overloaded. Calculates the cosine value of pi * _X |

cospif Function | Calculates the cosine value of pi * _X |

erf Function | Overloaded. Computes the error function of _X |

erfc Function | Overloaded. Computes the complementary error function of _X |

erfcf Function | Computes the complementary error function of _X |

erfcinv Function | Overloaded. Computes the inverse complementary error function of _X |

erfcinvf Function | Computes the inverse complementary error function of _X |

erff Function | Computes the error function of _X |

erfinv Function | Overloaded. Computes the inverse error function of _X |

erfinvf Function | Computes the inverse error function of _X |

exp Function | Overloaded. Calculates the base-e exponential of the argument |

exp10 Function | Overloaded. Calculates the base-10 exponential of the argument |

exp10f Function | Calculates the base-10 exponential of the argument |

exp2 Function | Overloaded. Calculates the base-2 exponential of the argument |

exp2f Function | Calculates the base-2 exponential of the argument |

expf Function | Calculates the base-e exponential of the argument |

expm1 Function | Overloaded. Calculates the base-e exponential of the argument, minus 1 |

expm1f Function | Calculates the base-e exponential of the argument, minus 1 |

fabs Function | Overloaded. Returns the absolute value of the argument |

fabsf Function | Returns the absolute value of the argument |

fdim Function | Overloaded. Determines the positive difference between the arguments |

fdimf Function | Determines the positive difference between the arguments |

floor Function | Overloaded. Calculates the floor of the argument |

floorf Function | Calculates the floor of the argument |

fma Function | Overloaded. Compute (_X * _Y) + _Z, rounded as one ternary operation |

fmaf Function | Compute (_X * _Y) + _Z, rounded as one ternary operation |

fmax Function | Overloaded. Determine the maximum numeric value of the arguments |

fmaxf Function | Determine the maximum numeric value of the arguments |

fmin Function | Overloaded. Determine the minimum numeric value of the arguments |

fminf Function | Determine the minimum numeric value of the arguments |

fmod Function (C++ AMP) | Overloaded. Calculates the floating-point remainder of _X/_Y |

fmodf Function | Calculates the floating-point remainder of _X/_Y |

fpclassify Function | Overloaded. Classifies the argument value as NaN, infinite, normal, subnormal, zero |

frexp Function | Overloaded. Gets the mantissa and exponent of _X |

frexpf Function | Gets the mantissa and exponent of _X |

hypot Function | Overloaded. Computes the square root of the sum of the squares of _X and _Y |

hypotf Function | Computes the square root of the sum of the squares of _X and _Y |

ilogb Function | Overloaded. Extract the exponent of _X as a signed int value |

ilogbf Function | Extract the exponent of _X as a signed int value |

isfinite Function | Overloaded. Determines whether the argument has a finite value |

isinf Function | Overloaded. Determines whether the argument is an infinity |

isnan Function | Overloaded. Determines whether the argument is a NaN |

isnormal Function | Overloaded. Determines whether the argument is a normal |

ldexp Function | Overloaded. Computes a real number from the mantissa and exponent |

ldexpf Function | Computes a real number from the mantissa and exponent |

lgamma Function | Overloaded. Computes the natural logarithm of the absolute value of gamma of the argument |

lgammaf Function | Computes the natural logarithm of the absolute value of gamma of the argument |

log Function | Overloaded. Calculates the base-e logarithm of the argument |

log10 Function | Overloaded. Calculates the base-10 logarithm of the argument |

log10f Function | Calculates the base-10 logarithm of the argument |

log1p Function | Overloaded. Calculates the base-e logarithm of 1 plus the argument |

log1pf Function | Calculates the base-e logarithm of 1 plus the argument |

log2 Function | Overloaded. Calculates the base-2 logarithm of the argument |

log2f Function | Calculates the base-2 logarithm of the argument |

logb Function | Overloaded. Extracts the exponent of _X, as a signed integer value in floating-point format |

logbf Function | Extracts the exponent of _X, as a signed integer value in floating-point format |

logf Function | Calculates the base-e logarithm of the argument |

modf Function | Overloaded. Splits _X into fractional and integer parts. |

modff Function | Splits _X into fractional and integer parts. |

nan Function | Returns a quiet NaN |

nanf Function | Returns a quiet NaN |

nearbyint Function | Overloaded. Rounds the argument to an integer value in floating-point format, using the current rounding direction. |

nearbyintf Function | Rounds the argument to an integer value in floating-point format, using the current rounding direction. |

nextafter Function | Overloaded. Determine the next representable value, in the type of the function, after _X in the direction of _Y |

nextafterf Function | Determine the next representable value, in the type of the function, after _X in the direction of _Y |

phi Function | Overloaded. Returns the cumulative distribution function of the argument |

phif Function | Returns the cumulative distribution function of the argument |

pow Function | Overloaded. Calculates _X raised to the power of _Y |

powf Function | Calculates _X raised to the power of _Y |

probit Function | Overloaded. Returns the inverse cumulative distribution function of the argument |

probitf Function | Returns the inverse cumulative distribution function of the argument |

rcbrt Function | Overloaded. Returns the reciprocal of the cube root of the argument |

rcbrtf Function | Returns the reciprocal of the cube root of the argument |

remainder Function | Overloaded. Computes the remainder: _X REM _Y |

remainderf Function | Computes the remainder: _X REM _Y |

remquo Function | Overloaded. 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 Function | 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. |

round Function | Overloaded. Rounds _X to the nearest integer |

roundf Function | Rounds _X to the nearest integer |

rsqrt Function | Overloaded. Returns the reciprocal of the square root of the argument |

rsqrtf Function | Returns the reciprocal of the square root of the argument |

scalb Function | Overloaded. Multiplies _X by FLT_RADIX to the power _Y |

scalbf Function | Multiplies _X by FLT_RADIX to the power _Y |

scalbn Function | Overloaded. Multiplies _X by FLT_RADIX to the power _Y |

scalbnf Function | Multiplies _X by FLT_RADIX to the power _Y |

signbit Function | Overloaded. Determines whether the sign of _X is negative |

signbitf Function | Determines whether the sign of _X is negative |

sin Function | Overloaded. Calculates the sine value of the argument |

sincos Function | Overloaded. Calculates sine and cosine value of _X |

sincosf Function | Calculates sine and cosine value of _X |

sinf Function | Calculates the sine value of the argument |

sinh Function | Overloaded. Calculates the hyperbolic sine value of the argument |

sinhf Function | Calculates the hyperbolic sine value of the argument |

sinpi Function | Overloaded. Calculates the sine value of pi * _X |

sinpif Function | Calculates the sine value of pi * _X |

sqrt Function | Overloaded. Calculates the squre root of the argument |

sqrtf Function | Calculates the squre root of the argument |

tan Function | Overloaded. Calculates the tangent value of the argument |

tanf Function | Calculates the tangent value of the argument |

tanh Function | Overloaded. Calculates the hyperbolic tangent value of the argument |

tanhf Function | Calculates the hyperbolic tangent value of the argument |

tanpi Function | Overloaded. Calculates the tangent value of pi * _X |

tanpif Function | Calculates the tangent value of pi * _X |

tgamma Function | Overloaded. Computes the gamma function of _X |

tgammaf Function | Computes the gamma function of _X |

trunc Function | Overloaded. Truncates the argument to the integer component |

truncf Function | Truncates the argument to the integer component |

**Header:** amp_math.h

**Namespace:** Concurrency