Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, you did not try to understand what I have written.

The use of ln 2 for argument range reduction has nothing to do with half lives. It is needed in any computation of e^x or ln x, because the numbers are represented as binary numbers in computers and the functions are evaluated with approximation formulae that are valid only for a small range of input arguments.

The argument range reduction can be avoided only if you know before evaluation that the argument is close enough to 0 for an exponential or to 1 for a logarithm, so that an approximation formula can be applied directly. For a general-purpose library function you cannot know this.

Also the use of 2^x instead of e^x for radioactive decay, population growth or financial interest is not at all limited to the narrow cases of doublings or halvings. Those happen when x in an integer in 2^x, but 2^x accepts any real value as argument. There is no difference in the definition set between 2^x and e^x.

The only difference between using 2^x and e^x in those 3 applications is in a different constant in the exponent, which has the easier to understand meaning of being the doubling or halving time, when using 2^x and a less obvious meaning when using e^x. In fact, only doubling or halving times are directly measured for radioactive decay or population growth. When you want to use e^x, you must divide the measured values by ln 2, an extra step that brings no advantage whatsoever, because it must be implicitly reversed during every subsequent exponential evaluation when the argument range reduction is computed.



> The use of ln 2 for argument range reduction has nothing to do with half lives.

That is a false statement.

> In fact, only doubling or halving times are directly measured for radioactive decay or population growth.

That is a false statement -- in population studies, as just one example, the logistic function (https://en.wikipedia.org/wiki/Logistic_function) tracks the effect of population growth over time as environmental limits take hold. This is a detailed model that forms a cornerstone of population environmental studies. To be valid, it absolutely requires the presence of e^x in one or another form.

> ... because the numbers are represented as binary numbers in computers and the functions are evaluated with approximation formulae that are valid only for a small range of input arguments.

That is a spectacularly false statement.

> There is no difference in the definition set between 2^x and e^x.

That is absolutely false, and trivially so.

> No, you did not try to understand what I have written.

On the contrary, I understood it perfectly. From a mathematical standpoint, 2^x cannot substitute for e^x, anywhere, ever. They're not interchangeable.

I hope no math students read this conversation and acquire a distorted idea of the very important role played by Euler's number in many applied mathematical fields.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: