I was a bit disappointed to learn that math-related Python packages don't seem to have an ln function. They all use log for the natural log and also have a log10.
Base e is considered the natural logarithm and is what you'll get if you call log in most programming languages targeted at math.
Why is that, off the top of my head I don't remember seeing base e logarithms too often, why are they so important?
You know what's even more dissapointing? bc - arbitrary precision calculator for linux shell uses 'l' for natural log, just a single letter.
And there's no other log function, so when you need logx(y) you write: ''l(y)/l(x)".
Well that's annoying..
Make your own package, or just macro that shit.
even Matlab suffers from this
suffers?
That’s because mathematicians use log for the natural logarithm. Log base 10 would be log_10
I was a bit disappointed to learn that math-related Python packages don't seem to have an
ln
function. They all uselog
for the natural log and also have alog10
.Base e is considered the natural logarithm and is what you'll get if you call log in most programming languages targeted at math.
Why is that, off the top of my head I don't remember seeing base e logarithms too often, why are they so important?
You know what's even more dissapointing? bc - arbitrary precision calculator for linux shell uses 'l' for natural log, just a single letter.
And there's no other log function, so when you need logx(y) you write: ''l(y)/l(x)".
Well that's annoying..
Make your own package, or just macro that shit.
even Matlab suffers from this
suffers?
That’s because mathematicians use log for the natural logarithm. Log base 10 would be log_10