log() : logarithm of x to the base e

We will get log value of any number with base e by using log() function.
log(x) 
x = input number

Example

#include <stdio.h>
#include <math.h>
int main(void){
     double  x,ret;
     x=3.54;
     ret=log(x);
     printf("log(%.2f)=%.2f", x,ret);
     return 0;
}
The above code will give this output.
log(3.54)= 1.26
Your Rating




Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer