Discuss Scratch

mybearworld
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

You maybe know these blocks:
[ln v] of (1)
[log v] of (1)
What's the mathematical difference between those?

And it would also be nice if you could tell me:
Can you calculate one using the other?

Last edited by mybearworld (Feb. 25, 2021 13:50:16)

han614698
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

Log stands for logarithm.
Wikipedia said:
Logarithm (log) In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a given number x is the exponent to which another fixed number, the base b, must be raised, to produce that number x.
In
Brittanica said:
Function, in mathematics, an expression, rule, or law that defines a relationship between one variable (the independent variable) and another variable (the dependent variable). Functions are ubiquitous in mathematics and are essential for formulating physical relationships in the sciences.
Not sure if this helps, but I hope it does.
mybearworld
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

han614698 wrote:

Log stands for logarithm.
Wikipedia said:
Logarithm (log) In mathematics, the logarithm is the inverse function to exponentiation. That means the logarithm of a given number x is the exponent to which another fixed number, the base b, must be raised, to produce that number x.
Thanks - but what's that base on scratch?

Last edited by mybearworld (Feb. 25, 2021 13:55:47)

Flowermanvista
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

To build on those definitions: “log” is a logarithm function of base 10, while “ln” (also known as the “natural logarithm”) is a logarithm function of base e, an irrational number approximately equal to 2.71828. You can read more about e here. IIRC logarithms are high-school level math, so if you haven't learned about them yet, you probably will eventually.

(Note that the number e is not to be confused with the other usage of “e” in Scratch math, where it stands for “exponent” - for example, the number 3e6 is equal to 3x10⁶.)
mybearworld
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

Flowermanvista wrote:

To build on those definitions: “log” is a logarithm function of base 10, while “ln” (also known as the “natural logarithm”) is a logarithm function of base e, an irrational number approximately equal to 2.71828. You can read more about e here. IIRC logarithms are high-school level math, so if you haven't learned about them yet, you probably will eventually.

(Note that the number e is not to be confused with the other usage of “e” in Scratch math, where it stands for “exponent” - for example, the number 3e6 is equal to 3x10⁶.)
Thanks, that was what I needed!
Maximouse
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

mybearworld wrote:

Can you calculate one using the other?
ln(x)/ln(10) = log(x)
TheRailwayNoob87
Scratcher
100+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

How do you make logarithms in any base on scratch? i would like to know it for my calculator project. something like:

(log base [] of []::operators)
mybearworld
Scratcher
1000+ posts

What's the difference between ln and log (optional: and is there a way to calculate one with the other)?

TheRailwayNoob87 wrote:

[View post]
How do you make logarithms in any base on scratch? i would like to know it for my calculator project. something like:

(log base [] of []::operators)
Please create a new topic for a question you have.
As this topic is already resolved, I will close it.

Powered by DjangoBB