Single Precision Mathematical Functions
[Mathematical Functions]


Functions

__device__ float acosf (float x)
 Calculate the arc cosine of the input argument.
__device__ float acoshf (float x)
 Calculate the nonnegative arc hyperbolic cosine of the input argument.
__device__ float asinf (float x)
 Calculate the arc sine of the input argument.
__device__ float asinhf (float x)
 Calculate the arc hyperbolic sine of the input argument.
__device__ float atan2f (float x, float y)
 Calculate the arc tangent of the ratio of first and second input arguments.
__device__ float atanf (float x)
 Calculate the arc tangent of the input argument.
__device__ float atanhf (float x)
 Calculate the arc hyperbolic tangent of the input argument.
__device__ float cbrtf (float x)
 Calculate the cube root of the input argument.
__device__ float ceilf (float x)
 Calculate ceiling of the input argument.
__device__ float copysignf (float x, float y)
 Create value with given magnitude, copying sign of second value.
__device__ float cosf (float x)
 Calculate the cosine of the input argument.
__device__ float coshf (float x)
 Calculate the hyperbolic cosine of the input argument.
__device__ float cospif (float x)
 Calculate the cosine of the input argument $ \times \pi$.
__device__ float erfcf (float x)
 Calculate the complementary error function of the input argument.
__device__ float erfcinvf (float y)
 Calculate the inverse complementary error function of the input argument.
__device__ float erfcxf (float x)
 Calculate the scaled complementary error function of the input argument.
__device__ float erff (float x)
 Calculate the error function of the input argument.
__device__ float erfinvf (float y)
 Calculate the inverse error function of the input argument.
__device__ float exp10f (float x)
 Calculate the base 10 exponential of the input argument.
__device__ float exp2f (float x)
 Calculate the base 2 exponential of the input argument.
__device__ float expf (float x)
 Calculate the base $e$ exponential of the input argument.
__device__ float expm1f (float x)
 Calculate the base $e$ exponential of the input argument, minus 1.
__device__ float fabsf (float x)
 Calculate the absolute value of its argument.
__device__ float fdimf (float x, float y)
 Compute the positive difference between x and y.
__device__ float fdividef (float x, float y)
 Divide two floating point values.
__device__ float floorf (float x)
 Calculate the largest integer less than or equal to x.
__device__ float fmaf (float x, float y, float z)
 Compute $x \times y + z$ as a single operation.
__device__ float fmaxf (float x, float y)
 Determine the maximum numeric value of the arguments.
__device__ float fminf (float x, float y)
 Determine the minimum numeric value of the arguments.
__device__ float fmodf (float x, float y)
 Calculate the floating-point remainder of x / y.
__device__ float frexpf (float x, int *nptr)
 Extract mantissa and exponent of a floating-point value.
__device__ float hypotf (float x, float y)
 Calculate the square root of the sum of squares of two arguments.
__device__ int ilogbf (float x)
 Compute the unbiased integer exponent of the argument.
__device__ int isfinite (float a)
 Determine whether argument is finite.
__device__ int isinf (float a)
 Determine whether argument is infinite.
__device__ int isnan (float a)
 Determine whether argument is a NaN.
__device__ float j0f (float x)
 Calculate the value of the Bessel function of the first kind of order 0 for the input argument.
__device__ float j1f (float x)
 Calculate the value of the Bessel function of the first kind of order 1 for the input argument.
__device__ float jnf (int n, float x)
 Calculate the value of the Bessel function of the first kind of order n for the input argument.
__device__ float ldexpf (float x, int exp)
 Calculate the value of $x\cdot 2^{exp}$.
__device__ float lgammaf (float x)
 Calculate the natural logarithm of the gamma function of the input argument.
__device__ long long int llrintf (float x)
 Round input to nearest integer value.
__device__ long long int llroundf (float x)
 Round to nearest integer value.
__device__ float log10f (float x)
 Calculate the base 10 logarithm of the input argument.
__device__ float log1pf (float x)
 Calculate the value of $log_{e}(1+x)$.
__device__ float log2f (float x)
 Calculate the base 2 logarithm of the input argument.
__device__ float logbf (float x)
 Calculate the floating point representation of the exponent of the input argument.
__device__ float logf (float x)
 Calculate the natural logarithm of the input argument.
__device__ long int lrintf (float x)
 Round input to nearest integer value.
__device__ long int lroundf (float x)
 Round to nearest integer value.
__device__ float modff (float x, float *iptr)
 Break down the input argument into fractional and integral parts.
__device__ float nanf (const char *tagp)
 Returns "Not a Number" value.
__device__ float nearbyintf (float x)
 Round the input argument to the nearest integer.
__device__ float nextafterf (float x, float y)
 Return next representable single-precision floating-point value afer argument.
__device__ float powf (float x, float y)
 Calculate the value of first argument to the power of second argument.
__device__ float rcbrtf (float x)
 Calculate reciprocal cube root function.
__device__ float remainderf (float x, float y)
 Compute single-precision floating-point remainder.
__device__ float remquof (float x, float y, int *quo)
 Compute single-precision floating-point remainder and part of quotient.
__device__ float rintf (float x)
 Round input to nearest integer value in floating-point.
__device__ float roundf (float x)
 Round to nearest integer value in floating-point.
__device__ float rsqrtf (float x)
 Calculate the reciprocal of the square root of the input argument.
__device__ float scalblnf (float x, long int n)
 Scale floating-point input by integer power of two.
__device__ float scalbnf (float x, int n)
 Scale floating-point input by integer power of two.
__device__ int signbit (float a)
 Return the sign bit of the input.
__device__ void sincosf (float x, float *sptr, float *cptr)
 Calculate the sine and cosine of the first input argument.
__device__ float sinf (float x)
 Calculate the sine of the input argument.
__device__ float sinhf (float x)
 Calculate the hyperbolic sine of the input argument.
__device__ float sinpif (float x)
 Calculate the sine of the input argument $\times \pi$.
__device__ float sqrtf (float x)
 Calculate the square root of the input argument.
__device__ float tanf (float x)
 Calculate the tangent of the input argument.
__device__ float tanhf (float x)
 Calculate the hyperbolic tangent of the input argument.
__device__ float tgammaf (float x)
 Calculate the gamma function of the input argument.
__device__ float truncf (float x)
 Truncate input argument to the integral part.
__device__ float y0f (float x)
 Calculate the value of the Bessel function of the second kind of order 0 for the input argument.
__device__ float y1f (float x)
 Calculate the value of the Bessel function of the second kind of order 1 for the input argument.
__device__ float ynf (int n, float x)
 Calculate the value of the Bessel function of the second kind of order n for the input argument.

Detailed Description

This section describes single precision mathematical functions.

Generated by Doxygen for NVIDIA CUDA Library  NVIDIA