this post was submitted on 17 Sep 2023
682 points (97.0% liked)

Memes

45625 readers
922 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS
 
top 26 comments
sorted by: hot top controversial new old
[–] [email protected] 43 points 1 year ago* (last edited 1 year ago) (6 children)

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.

[–] [email protected] 22 points 1 year ago (1 children)

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

[–] [email protected] 3 points 1 year ago (1 children)

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

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

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.

[–] [email protected] 11 points 1 year ago

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

[–] [email protected] 7 points 1 year ago

Well that's annoying..

[–] [email protected] 5 points 1 year ago

Make your own package, or just macro that shit.

[–] [email protected] 4 points 1 year ago (1 children)

even Matlab suffers from this

[–] [email protected] 7 points 1 year ago (1 children)
[–] [email protected] 1 points 1 year ago (1 children)

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

[–] [email protected] 4 points 1 year ago

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

[–] [email protected] 11 points 1 year ago (3 children)
[–] [email protected] 94 points 1 year ago* (last edited 1 year ago) (2 children)

"ln(x)" is another way of writing log sub e of x https://en.m.wikipedia.org/wiki/Natural_logarithm

The "ln" of the "you son of a bitch. I'm ln" is referencing that identity

[–] [email protected] 13 points 1 year ago
[–] [email protected] 11 points 1 year ago* (last edited 1 year ago) (2 children)

ln(x) (I believe abbreviated from the french logarithme naturel) is the same as the logarithm of x base e (log~e~(y))

Edit: ~subscript~ doesn't seem to work for me on Jerboa but I'm keeping it as it is

[–] [email protected] 6 points 1 year ago

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

[–] [email protected] 6 points 1 year ago* (last edited 1 year ago) (2 children)

Checking if ~thunder~ can subscript...

Edit: Nope, it can't...

[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 3 points 1 year ago
[–] [email protected] 4 points 1 year ago (1 children)

Pretty sure that superscript is using ^circumflex^

[–] [email protected] 4 points 1 year ago (1 children)
[–] [email protected] 2 points 1 year ago

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

[–] [email protected] 5 points 1 year ago

ln you a hand