double log(double dX);
float log(float); double log(double); long double log(long double);
float logf(float); long double logl(long double);
* Note: Since C does not allow function overloading, these other versions of this function exist.
|
Domain (0, ∞) Range (-∞, ∞) Periodicity None Symmetry None Asymptotes x = 0 |
|
#include <iostream>
#include <cmath>
int main() {
using namespace std;
double dX = 1000.0;
cout << "x = " << dX << " log(x) = " << log(dX) << endl;
dX = 1.8;
cout << "x = " << dX << " log(x) = " << log(dX) << endl;
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.