44 points
*

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.

permalink
report
reply
22 points

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

permalink
report
parent
reply
3 points

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

permalink
report
parent
reply
4 points
*

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.

permalink
report
parent
reply
11 points

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

permalink
report
parent
reply

Well that’s annoying…

permalink
report
parent
reply
5 points

Make your own package, or just macro that shit.

permalink
report
parent
reply
4 points

even Matlab suffers from this

permalink
report
parent
reply
7 points

suffers?

permalink
report
parent
reply
1 point

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

permalink
report
parent
reply
4 points

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

permalink
report
parent
reply
12 points

Still dnt get it bruv

permalink
report
reply
96 points
*

“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

permalink
report
parent
reply
14 points

❤️

permalink
report
parent
reply
-26 points

Wow, i just lost some brain cells for this 🤣

permalink
report
parent
reply
-8 points

Or it is just idiotic.

permalink
report
parent
reply
13 points
*

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

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

permalink
report
parent
reply
6 points
*

Checking if thunder can subscript…

Edit: Nope, it can’t…

permalink
report
parent
reply
4 points

Pretty sure that superscript is using circumflex

permalink
report
parent
reply
4 points

Well, shite

permalink
report
parent
reply
6 points

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

permalink
report
parent
reply
5 points

ln you a hand

permalink
report
parent
reply

Memes

!memes@lemmy.ml

Create post

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.

Community stats

  • 13K

    Monthly active users

  • 13K

    Posts

  • 284K

    Comments