Check out example codes for "log base e synthax c++". It will help you in understanding the concepts better.

Code Example 1

#include <math.h>       /* log */

 double param, result;
  param = 10;
  result = log (param);
  printf ("log(%f) = %f\n", param, result );

Learn ReactJs, React Native from akashmittal.com