Comment by jcranmer
5 hours ago
It took me quite a bit to figure out what you're trying to say here.
The importance of e is that it's the natural base of exponents and logarithms, the one that makes an otherwise constant factor disappear. If you're using a different base b, you generally need to adjust by exp(b) or ln(b), neither of which requires computing or using e itself (instead requiring a function call that's using minimax-generated polynomial coefficients for approximation).
The importance of π or 2π is that the natural periodicity of trigonometric functions is 2π or π (for tan/cot). If you're using a different period, you consequently need to multiply or divide by 2π, which means you actually have to use the value of the constant, as opposed to calling a library function with the constant itself.
Nevertheless, I would say that despite the fact that you would directly use e only relatively rarely, it is still the more important constant.
No comments yet
Contribute on Hacker News ↗