log()Prototype: double log(double anumber);Header File: math.h (C) or cmath (C++) Explanation: Log returns the natural logarithm for anumber, as long as it is not negative, or zero. . //Example gives the natural logarithm of 100 #include <iostream> #include <cmath> using namespace std; int main() { cout<<log(100); }Other Functions |