log function returns natural logarithm (base is e) of a number, where e is the exponential number.
Syntax:double log(double);
Example:#include
#include
int main()
{
double n, result;
printf("Enter a number to calculate it's natural log (base is e)\n");
scanf("%lf", &n);
result = log(n);
printf("Natural log of %.2lf = %lf\n", n, result);
return 0;
}
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 51 / 158781090. Delta: 0.01963 с