3 ms·
I thought it was common programming knowledge that ln(x) is log(x), and log(x) is log10(x). As an EE, I use both frequently. Seems a lot of errors could be av
by madengr 10y ago
I thought it was common programming knowledge that ln(x) is log(x), and log(x) is log10(x).
As an EE, I use both frequently. Seems a lot of errors could be avoided by just comparing your code to a simple hand calculation. I suppose few do that these days.
- ktamiola 10y agoAnd that's exactly why it is such an annoying problem to spot and debug!
- throwaway_374 10y ago>>that ln(x) is log(x), and log(x) is log10(x). Can you clarify what you mean? Are you missing a log_e_(x)?
- madengr 10y agoJust that all languages and CAD environments I have used define log(x) as natural logarithm, and log10(x) and base 10 logarithm. Again, this is common knowledge in engineering programming, but maybe not so in general programming.