Oct-20-2017, 10:29 AM
math.log(x[,base])
is how it is written in the help docs to indicate that base is an optional argument. The default is e, so math.log(x)
returns ln(x)
.From your description however it sounds like you are expected to return
e**x
, not ln(x)
.>>> import math >>> math.exp(5) 148.4131591025766 >>> e = math.e >>> e**5 148.41315910257657 >>>