In cpython/Modules/_math.c there is definition of as const ln2
the value that in that const isn't correct (at least not accurate)
This is value that in the file:
ln2 = 0.693147180559945286227 (cpython)
but when calculating the value in wolframalpha, this is the value we get.
ln2 = 0.6931471805599453094172321214581 (wolframalpha)
and this is the value from Wikipedia
ln2 = 0.693147180559945309417232121458 (wikipedia)
also this is the thread in stackoverflow regarding this issue
https://stackoverflow.com/questions/48644767/ln2-const-value-in-math-c-in-cpython |