gpt-4o-mini-2024-07-18· OpenAI
WildChat-4.8M (AI2)
full list of math.h functions with short (<100 symbols) descr
- User
full list of math.h functions with short (<100 symbols) descr
- Assistant
full list of math.h functions with short (<100 symbols) descr
Here's a list of functions from the math.h library in C, along with brief descriptions:
double fabs(double x); - Returns the absolute value of x.double floor(double x); - Rounds x down to the nearest integer.double ceil(double x); - Rounds x up to the nearest integer.double round(double x); - Rounds x to the nearest integer.double sqrt(double x); - Returns the square root of x.double pow(double x, double y); - Raises x to the power of y.double exp(double x); - Calculates e raised to the power of x.double log(double x); - Returns the natural logarithm (base e) of x.double log10(double x); - Returns the base 10 logarithm of x.double sin(double x); - Computes the sine of x (radians).double cos(double x); - Computes the cosine of x (radians).double tan(double x); - Computes the tangent of x (radians).double asin(double x); - Computes the arcsine of x.double acos(double x); - Computes the arccosine of x.double atan(double x); - Computes the arctangent of x.double atan2(double y, double x); - Computes the arctangent of y/x.double sinh(double x); - Computes the hyperbolic sine of x.double cosh(double x); - Computes the hyperbolic cosine of x.double tanh(double x); - Computes the hyperbolic tangent of x.double fmod(double x, double y); - Returns the remainder of x divided by y.double modf(double x, double *intpart); - Breaks x into integer and fractional parts.double frexp(double x, int *exponent); - Decomposes x into a normalized fraction and exponent.double ldexp(double x, int exponent); - Multiplies x by 2 raised to exponent.double gamma(double x); - Computes the gamma function of x.double lgamma(double x); - Returns the natural logarithm of the absolute value of the gamma function.double erf(double x); - Computes the error function of x.double erfc(double x); - Computes the complementary error function of x.double hypot(double x, double y); - Returns the Euclidean distance sqrt(x² + y²).double nextafter(double x, double y); - Returns the next representable floating-point value from x towards y.double copysign(double x, double y); - Returns x with the sign of y.double scalbn(double x, int n); - Multiplies x by 2 raised to the power of n.int isfinite(double x); - Checks if x is finite (not inf or NaN).int isinf(double x); - Checks if x is positive or negative infinity.int isnan(double x); - Checks if x is NaN (Not a Number).This list covers most of the essential math.h functions. Note that availability may vary based on the specific implementation or standard being used.
Not yet included in a published release.