module.exports = function exp(x) { // discuss at: https://locutus.io/python/exp/ // parity verified: Python 3.12 // original by: Kevin van Zonneveld (https://kvz.io) // note 1: Returns e raised to the power of x // example 1: exp(0) // returns 1: 1 // example 2: exp(1) // returns 2: 2.718281828459045 return Math.exp(x) }