Message290937
The math.exp(x) function is documented to "Return e**x" <https://docs.python.org/3/library/math.html#math.exp>. This is misleading because even in the simplest case, math.exp(x) is not the same as math.e ** x:
>>> import math
>>> math.exp(2) - math.e ** 2
8.881784197001252e-16
I suggest using e<sup>x instead of e**x to distinguish between Python syntax and mathematical operation and change "Return e**x" to "Return e<sup>x, the base-e exponential of x." |
|
Date |
User |
Action |
Args |
2017-03-31 20:08:37 | belopolsky | set | recipients:
+ belopolsky, docs@python |
2017-03-31 20:08:37 | belopolsky | set | messageid: <1490990917.06.0.404933995002.issue29956@psf.upfronthosting.co.za> |
2017-03-31 20:08:37 | belopolsky | link | issue29956 messages |
2017-03-31 20:08:37 | belopolsky | create | |
|