Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

Math functions

&pagelevel(3)&pagelevel

Arithmetic with integers

“abs - return integer absolute value”

“div - divide with integers”

"imaxabs - return integer absolute value (intmax_t)"

"imaxdiv - division of integers (intmax_t)"

“labs - return long integer absolute value”

“ldiv - long division of integers”

“llabs - return absolute value of an integer (long long int)”

“lldiv - division of integers (long long int)”

“llrint, llrintf, llrintl - round to nearest integer value (long long int)”

“llround, llroundf, llroundl - round up to next integer value (long long int)”

“lrint, lrintf, lrintl - round to nearest integer value (long int)”

“lround, lroundf, lroundl - round up to next integer value (long int)”

Arithmetic with floating-point numbers

“cabs - calculate absolute value of complex number(BS2000)”

“ceil, ceilf, ceill - round up floating-point number”

“cbrt, cbrtf, cbrtl - cube root”

"copysign, copysignf, copysignl - copy sign"

"erf, erff, erfl, erfc, erfcf, erfcl - error and complementary error functions"

“errno - variable for error return values”

“exp, expf, expl - use exponential function”

“expm1, expm1f, expm1l - compute exponential function”

"exp2, exp2f, exp2l - use exponential function"

“fabs, fabsf, fabsl - compute absolute value of floating-point number”

"fdim, fdimf, fdiml - compute positive difference"

“floor, floorf, floorl- round off floating point number”

"fmax, fmaxf, fmaxl - determine maximum numeric value"

"fmin, fminf, fminl - determine minimum numeric value"

“fmod, fmodf, fmodl - compute floating-point remainder value function”

"fpclassify - macro to classify floating-point numbers"

“frexp, frexpf, frexpl - extract mantissa and exponent from double precision number”

“gamma - compute logarithm of gamma function”

“hypot, hypotf, hypotl - Euclidean distance function”

“ilogb, ilogbf, ilogbl - get exponent part of floating-point number”

"isfinite - Macro to test for finite value"

"isinf - Macro to test for infinity"

“isnan - test for NaN (not a number)”

"isnormal - Macro to test for a normal value"

“j0, j1, jn - Bessel functions of first kind”

“ldexp, ldexpf, ldexpl - load exponent of floating-point number”

“lgamma, lgammaf, lgammal, gamma, signgam - compute logarithm of gamma function”

“log, logf, logl - natural logarithm function”

“log10, log10f, log10l - base 10 logarithm function”

“log1p, log1pf, log1pl - compute natural log”

"log2, log2f, log2l - base 2 logarithm function"

“logb, logbf, logbl - get exponent part of floating-point number”

“modf, modff, modfl - split floating-point number into integral and fractional parts”

"nearbyint, nearbyintf, nearbyintl - round to nearest integer value"

“nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl - next displayable floating-point number”

“pow, powf, powl - power function”

“remainder, remainderf, remainderl - remainder from division”

"remquo, remquof, remquol - remainder from division"

“rint, rintf, rintl - round to nearest integer value”

“round, roundf, roundl - round up to next integer value”

“scalb - load exponent of base-independent floating-point number”

"scalbn, scalbnf, scalbnl, scalbln, scalblnf, scalblnl - load exponent of base-independent floating-point number"

“signgam - variable for sign of lgamma”

“sqrt, sqrtf, sqrtl - square root function”

"tgamma, tgammaf, tgammal - compute gamma function"

"trunc, truncf, truncl - round to truncated integer value"

“y0, y1, yn - Bessel functions of the second kind”

Trigonometric, hyperbolic and arc functions

“acos, acosf, acosl - arc cosine function”

“acosh, acoshf, acoshl, asinh, asinhf, asinhl, atanh, atanhl, atanhf - inverse hyperbolic functions”

“asin, asinf, asinl - arc sine function”

“atan, atanf, atanl - arc tangent function”

“atan2, atan2f, atan2l - arc tangent of x/y”

“cos, cosf, cosl - cosine function”

“cosh, coshf, coshl - hyperbolic cosine function”

“sin, sinf, sinl - sine function”

“sinh, sinhf, sinhl - hyperbolic sine function”

“tan, tanf, tanh - compute tangent”

“tanh, tanhf, tanhl - compute hyperbolic tangent”

Random numbers

“drand48 - generate pseudo-random numbers between 0.0 and 1.0”

"erand48 - generate pseudo-random numbers between 0.0 and 1.0 with initialization value" (see erand48 in chapter "drand48, ...- generate pseudo-random number")

“initstate, random, setstate, srandom - generate pseudo-random numbers”

"jrand48 - generate pseudo random numbers between -231 and 231 with initialization value" (see jrand48 in chapter "drand48, ... - generate pseudo-random numbers")

lcong48 - pseudo-random number (signed long int) generator" (see lcong48 in chapter "drand48, ... - generate pseudo-random numbers")

"lrand48 - generate pseudo random numbers between 0 and 231" (see lrand48 in chapter "drand48, ... - generate pseudo-random numbers")

"mrand48 - generate pseudo random numbers between -231 and 231" (see mrand48 in chapter "drand48, ... - generate pseudo-random numbers")

"nrand48 - generate pseudo random numbers between 0 and 231 with initialization value" (see nrand48 in chapter "drand48, ... - generate pseudo-random numbers.0")

“rand - pseudo-random number generator (int)”

“seed48 - set seed (int) for pseudo-random numbers”" (see seed48 in chapter "drand48, ... - generate pseudo-random numbers")

“srand - generate pseudo-random numbers with seed”

"srand48 - seed (double-precision) pseudo-random number generator" (see srand48 in chapter "drand48, ... - generate pseudo-random numbers")