C Math Functions

C Math Functions

The following are the list of inbuilt math functions in c programming.

FunctionsExplanation
abs(x)Returns the absolute value of x (for integer type numbers).
acos(x)Returns the arc-cosine of x.
acosh(x)Returns the hyperbolic arc-cosine of x.
asin(x)Returns the arc-sine of x.
asinh(x)Returns the hyperbolic arc-sine of x.
atan2(y, x)Returns the angle in the plane between the positive x-axis and the ray from (0, 0) to the point (x, y), for atan2(y, x).
atan(x)Returns the arc-tangent (in radians) of x.
atanh(x)Returns the hyperbolic arc-tangent of x.
cbrt(x)Returns the cube root of x.
ceil(x)Returns a number representing the nearest integer which is greater than or equal to x.
cos(x)Returns the cosine of x.
cosh(x)Returns the hyperbolic cosine of x.
exp(x)Rreturns the value of Ex.
fabs(x)Returns the absolute value of x (for floating type numbers).
floor(x)Returns a number representing the nearest integer which is less than or equal to x.
fmod(x, y)Returns the remainder of x divided by y.
frexp(x, e)Returns the mantissa and the exponent of x.
hypot(a, b)Returns the square root of the sum of squares of its arguments.
ldexp(x, e)Returns x multiplied by 2 raised to the power of exponent.
log10(x)Returns the base 10 logarithm of x.
log(x)Returns the natural logarithm (base E) of x.
modf(x, intpart)Breaks the given argument into two parts, one is integer and the other one is fractional.
pow(base, exponent)Returns a number representing the given base taken to the power of the given exponent.
round(x)Returns the value of a number rounded to the nearest integer.
sin(x)Returns the sine of x.
sinh(x)Returns the hyperbolic sine of x.
sqrt(x)Returns the square root of x.
tan(x)Returns the tangent of x.
tanh(x)Returns the hyperbolic tangent of x.
trunc(x)Returns the integer part of the number x, removing any fractional digits.

Join Our Channel

Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.

This channel is primarily useful for Full Stack Web Developer.

Share this Page

Meet the Author