Javascript Math exp()

Introduction

The Math.exp() function returns ex, where x is the argument, and e is the base of the natural logarithms.
Math.exp(x)    // x is a number.
let a = Math.exp(-1); // 0.36787944117144233
console.log(a);/*from w  w w . j a  va2 s  .co  m*/
a = Math.exp(0);  // 1
console.log(a);
a = Math.exp(1);  // 2.718281828459045
console.log(a);



PreviousNext

Related