gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
I need list of 200 math.h functions (C/C++) that you know with short description for each
- User
I need list of 200 math.h functions (C/C++) that you know with short description for each
- Assistant
Here is a list of 200 Math.h functions commonly used in C/C++ along with a short description for each:
abs(): Returns the absolute value of an integer value.fabs(): Returns the absolute value of a floating-point value.sqrt(): Returns the square root of a value.cbrt(): Returns the cube root of a value.pow(): Returns a value raised to a given power.exp(): Returns the exponential value of a number.log(): Returns the natural logarithm (base-e logarithm) of a number.log10(): Returns the base-10 logarithm of a number.sin(): Returns the sine of an angle in radians.cos(): Returns the cosine of an angle in radians.tan(): Returns the tangent of an angle in radians.asin(): Returns the arcsine of a value in the range of -1 to 1.acos(): Returns the arccosine of a value in the range of -1 to 1.atan(): Returns the arctangent of a value.atan2(): Returns the arctangent of the quotient of two given numbers.sinh(): Returns the hyperbolic sine of a value.cosh(): Returns the hyperbolic cosine of a value.tanh(): Returns the hyperbolic tangent of a value.ceil(): Returns the smallest integer value greater than or equal to a given value.floor(): Returns the largest integer value less than or equal to a given value.round(): Returns the value rounded to the nearest integer.trunc(): Returns the integer part of a given value, discarding the fractional part.fmod(): Returns the remainder of a division operation.remainder(): Returns the remainder of a division operation with the same sign as the dividend.fmax(): Returns the maximum value between two given values.fmin(): Returns the minimum value between two given values.fma(): Returns the result of multiplying the first input by the second input and then adding the third input.isnan(): Checks if a given value is "Not a Number" (NaN).isinf(): Checks if a given value is infinite.isfinite(): Checks if a given value is finite.finite(): Returns the given value if it is finite; otherwise, it returns a positive or negative infinity.fdim(): Returns the positive difference between two values.exp2(): Returns 2 raised to the power of a value.expm1(): Returns e raised to the power of a value minus 1.ilogb(): Returns the binary exponent of a given value.log1p(): Returns the natural logarithm of 1 plus a value.log2(): Returns the base-2 logarithm of a number.logb(): Returns the binary exponent of a given value.nearbyint(): Rounds a value to the nearest integer using the current rounding mode.nextafter(): Returns the next representable value after a given value in the specified direction.nexttoward(): Returns the next representable value after a given value in the specified direction, using the long double type.remainder(): Returns the floating-point remainder of dividing two given values.remquo(): Returns the integer quotient and remainder of dividing two given values.scalbln(): Scales a floating-point value by an integral power of the radix.scalbn(): Scales a floating-point value by an integral power of two.copysign(): Returns a value with the magnitude of the first input and the sign of the second input.hypot(): Returns the length of the hypotenuse of a right-angled triangle.acosh(): Returns the inverse hyperbolic cosine of a value.asinh(): Returns the inverse hyperbolic sine of a value.atanh(): Returns the inverse hyperbolic tangent of a value.erf(): Returns the error function of a value.erfc(): Returns the complementary error function of a value.lgamma(): Computes the logarithm of the absolute value of the Gamma function of a value.tgamma(): Returns the Gamma function of a value.j0(): Returns the Bessel function of the first kind of order zero.j1(): Returns the Bessel function of the first kind of order one.jn(): Returns the Bessel function of the first kind of integer order.y0(): Returns the Bessel function of the second kind of order zero.y1(): Returns the Bessel function of the second kind of order one.yn(): Returns the Bessel function of the second kind of integer order.nearbyintf(): Rounds a value to the nearest integer using the current rounding mode (for float input).rint(): Rounds a value to the nearest integer value, using the current rounding mode.fabsf(): Returns the absolute value of a float value.powf(): Returns a value raised to a given power (for float input).sqrtf(): Returns the square root of a float value.cbrtf(): Returns the cube root of a float value.expm1f(): Returns e raised to the power of a float value minus 1.expf(): Returns the exponential value of a float value.logf(): Returns the natural logarithm of a float value.log2f(): Returns the base-2 logarithm of a float value.log10f(): Returns the base-10 logarithm of a float value.sinhf(): Returns the hyperbolic sine of a float value.coshf(): Returns the hyperbolic cosine of a float value.tanhf(): Returns the hyperbolic tangent of a float value.asinhf(): Returns the inverse hyperbolic sine of a float value.acoshf(): Returns the inverse hyperbolic cosine of a float value.atanhf(): Returns the inverse hyperbolic tangent of a float value.atan2f(): Returns the arctangent of the quotient of two float values.sinf(): Returns the sine of an angle in radians (for float input).cosf(): Returns the cosine of an angle in radians (for float input).tanf(): Returns the tangent of an angle in radians (for float input).asinf(): Returns the arcsine of a float value in the range of -1 to 1.acosf(): Returns the arccosine of a float value in the range of -1 to 1.atanf(): Returns the arctangent of a float value.logbf(): Returns the binary exponent of a float value.exp2f(): Returns 2 raised to the power of a float value.ilogbf(): Returns the binary exponent of a float value as an integer.remainderf(): Returns the remainder of dividing two float values.fmodf(): Returns the remainder of a division operation with the same sign as the dividend (for float input).hypotf(): Returns the length of the hypotenuse of a right-angled triangle (for float input).copysignf(): Returns a value with the magnitude of the first input and the sign of the second input (for float input).fmaxf(): Returns the maximum value between two float values.fminf(): Returns the minimum value between two float values.fdimf(): Returns the positive difference between two float values.truncf(): Returns the integer part of a float value, discarding the fractional part.ceilf(): Returns the smallest integer value greater than or equal to a float value.floorf(): Returns the largest integer value less than or equal to a float value.roundf(): Returns the value rounded to the nearest integer (for float input).pow10(): Returns 10 raised to the power of a value.hypotl(): Returns the length of the hypotenuse of a right-angled triangle (for long double input).sinl(): Returns the sine of an angle in radians (for long double input).cosl(): Returns the cosine of an angle in radians (for long double input).tanl(): Returns the tangent of an angle in radians (for long double input).asinl(): Returns the arcsine of a long double value in the range of -1 to 1.acosl(): Returns the arccosine of a long double value in the range of -1 to 1.atanl(): Returns the arctangent of a long double value.atan2l(): Returns the arctangent of the quotient of two long double values.sinhl(): Returns the hyperbolic sine of a long double value.coshl(): Returns the hyperbolic cosine of a long double value.tanhl(): Returns the hyperbolic tangent of a long double value.atanhl(): Returns the inverse hyperbolic tangent of a long double value.asinhl(): Returns the inverse hyperbolic sine of a long double value.acoshl(): Returns the inverse hyperbolic cosine of a long double value.expm1l(): Returns e raised to the power of a long double value minus 1.exp2l(): Returns 2 raised to the power of a long double value.logl(): Returns the natural logarithm of a long double value.log2l(): Returns the base-2 logarithm of a long double value.log10l(): Returns the base-10 logarithm of a long double value.cbrtl(): Returns the cube root of a long double value.fabsl(): Returns the absolute value of a long double value.sqrtl(): Returns the square root of a long double value.powl(): Returns a value raised to a given power (for long double input).fmodl(): Returns the remainder of a division operation with the same sign as the dividend (for long double input).remainderl(): Returns the remainder of dividing two long double values.fmaxl(): Returns the maximum value between two long double values.fminl(): Returns the minimum value between two long double values.fdiml(): Returns the positive difference between two long double values.fmal(): Returns the result of multiplying the first input by the second input and then adding the third input (for long double input).sqrtl(): Returns the square root of a long double value.ceill(): Returns the smallest integer value greater than or equal to a long double value.floorl(): Returns the largest integer value less than or equal to a long double value.roundl(): Returns the value rounded to the nearest integer (for long double input).truncl(): Returns the integer part of a long double value, discarding the fractional part.scalblnf(): Scales a floating-point value by an integral power of the radix (for float input).scalbnf(): Scales a floating-point value by an integral power of two (for float input).scalblnl(): Scales a long double value by an integral power of the radix.scalbnl(): Scales a long double value by an integral power of two.copysignl(): Returns a value with the magnitude of the first input and the sign of the second input (for long double input).nextafterl(): Returns the next representable value after a given value in the specified direction (for long double input).nexttowardl(): Returns the next representable value after a given value in the specified direction, using the long double type.erf(): Returns the error function of a double value.erff(): Returns the error function of a float value.erfl(): Returns the error function of a long double value.erfc(): Returns the complementary error function of a double value.erfcf(): Returns the complementary error function of a float value.erfcl(): Returns the complementary error function of a long double value.lgamma(): Computes the logarithm of the absolute value of the Gamma function of a double value.lgammaf(): Computes the logarithm of the absolute value of the Gamma function of a float value.lgammal(): Computes the logarithm of the absolute value of the Gamma function of a long double value.tgamma(): Returns the Gamma function of a double value.tgammaf(): Returns the Gamma function of a float value.tgammal(): Returns the Gamma function of a long double value.j0(): Returns the Bessel function of the first kind of order zero (for double input).j1(): Returns the Bessel function of the first kind of order one (for double input).jn(): Returns the Bessel function of the first kind of integer order (for double input).j0f(): Returns the Bessel function of the first kind of order zero (for float input).j1f(): Returns the Bessel function of the first kind of order one (for float input).jnf(): Returns the Bessel function of the first kind of integer order (for float input).y0(): Returns the Bessel function of the second kind of order zero (for double input).y1(): Returns the Bessel function of the second kind of order one (for double input).yn(): Returns the Bessel function of the second kind of integer order (for double input).y0f(): Returns the Bessel function of the second kind of order zero (for float input).y1f(): Returns the Bessel function of the second kind of order one (for float input).ynf(): Returns the Bessel function of the second kind of integer order (for float input).nearbyint(): Rounds a value to the nearest integer using the current rounding mode (for double input).nearbyintf(): Rounds a value to the nearest integer using the current rounding mode (for float input).nearbyintl(): Rounds a value to the nearest integer using the current rounding mode (for long double input).rint(): Rounds a value to the nearest integer value, using the current rounding mode (for double input).rintf(): Rounds a value to the nearest integer value, using the current rounding mode (for float input).rintl(): Rounds a value to the nearest integer value, using the current rounding mode (for long double input).isnan(): Checks if a given value is "Not a Number" (NaN) (for double input).isnanf(): Checks if a given value is "Not a Number" (NaN) (for float input).isnanl(): Checks if a given value is "Not a Number" (NaN) (for long double input).isinf(): Checks if a given value is infinite (for double input).isinf(): checks if a given value is infinite (for float input).isinf(): checks if a given value is infinite (for long double input).isfinite(): Checks if a given value is finite (for double input).isfinitef(): Checks if a given value is finite (for float input).isfinitel(): Checks if a given value is finite (for long double input).finite(): Returns the given value if it is finite; otherwise, it returns a positive or negative infinity (for double input).finitef(): Returns the given value if it is finite; otherwise, it returns a positive or negative infinity (for float input).finitel(): Returns the given value if it is finite; otherwise, it returns a positive or negative infinity (for long double input).math_errhandling(): Returns the current error-handling mode for math functions.fpclassify(): Returns the classification of a given value according to the IEEE 754 standard.acosh(): Returns the inverse hyperbolic cosine of a double value.acoshl(): Returns the inverse hyperbolic cosine of a long double value.acoshf(): Returns the inverse hyperbolic cosine of a float value.acoshf(): Returns the inverse hyperbolic cosine of a float value.acoshf(): Returns the inverse hyperbolic cosine of a float value.cfpclassify(): Returns the classification of a given value according to the IEEE 754 standard (for complex float input).clog(): Returns the natural logarithm of a complex double value.clogf(): Returns the natural logarithm of a complex float value.cexpl(): Returns the exponential value of a complex long double value.cexpf(): Returns the exponential value of a complex float value.cos(): Returns the cosine component of a complex double number.cosf(): Returns the cosine component of a complex float number.