Spyke

Syndicated from the fediverse. Read and engage on the original instance.

View original on lemmy.dbzer0.com

25 replies

lemmy.world

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.

42
Afrazzlereply
sh.itjust.works

Base e is considered the natural logarithm and is what you'll get if you call log in most programming languages targeted at math.

22
Redexreply
lemmy.world

Why is that, off the top of my head I don't remember seeing base e logarithms too often, why are they so important?

3

They get used all over especially in differential equations.

Log10 basically only comes up in statistics for doing a log plot in base 10.

Basically high school math won't use the natural log much, but once you hit university higher level math it becomes apparent it's the one everyone actually uses regularly.

4

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)".

11

That’s because mathematicians use log for the natural logarithm. Log base 10 would be log_10

4
Yuumireply
lemmy.ml

even Matlab suffers from this

4
Yuumireply
lemmy.ml

Yes? Suffer -> Suffering / Suffers ? Is this not correct?

1
well5H1T3reply
lemmy.world

Checking if thunder can subscript...

Edit: Nope, it can't...

7
macnielreply
feddit.de

Pretty sure that superscript is using ^circumflex^

4

Huh you are right. It only works on the web frontend, not on the mobile apps.

2

It's also called logarithme népérien, for Jonh Napier, mathematician who discovered a lot of the properties of the logarithmic function.

6

You reached the end

Took me a minute. | Spyke