The log2 function in C computes the base-2 logarithm of x . A domain error occurs if the argument is less than zero. A pole error may occur if the argument is zero. The x is the argument that is passed into the log2(). It is declared in math.h and takes one argument in…

The log10 function in C computes the base-10 (common) logarithm of x. A domain error occurs if the argument is negative. A pole error may occur if the argument is zero. The x is the argument that is passed into the log10(). It is declared in math.h and takes one argument in the…

The log function in C computes the base-e (natural) logarithm of x . A domain error occurs if the argument is negative. A pole error may occur if the argument is zero. The x is the argument that is passed into the log(). It is declared in math.h and takes one argument in…

The fabs function in C computes the absolute value of a floating-point number x. The x is the argument that is passed into the fabs(). It is declared in math.h and takes one argument in the form of double and returns the value of type double. Example, Input : 3.5 Output : 3.5…

The floor function in C computes the largest integer value not greater than x. In other words, you can say that the floor function computes the largest integer value not greater than  x. The x is the argument that is passed into the floor(). It is declared in math.h and takes one argument…

The ceil function in C computes the smallest integer value not less than x. In another word, you can say that ceil function computes the smallest integer that is greater than or equal to x. The x is the argument that is passed in the ceil(). It is declared in math.h…

The sqrt function in C computes the nonnegative square root of x (sqrt parameters). A domain error occurs if the argument is less than zero. It is declared in math.h and takes one argument in the form of double and returns the value of type double. Syntax of sqrt function…