C Language

exp function in C

The exp function in C computes the base-e exponential of x. A range error occurs if the magnitude of finite x is too large. The x is the argument that is passed into the exp(). It is declared in math.h and takes one argument in the form of double and returns the value of type double.   Syntax

exp function in C Read More »

log2 function in C

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 form of double and

log2 function in C Read More »

log10 function in C

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 form of double and returns

log10 function in C Read More »

log function in C

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 form of double and

log function in C Read More »