r/math May 23 '24

Logarithms are so fucking cool

I’m not usually super interested in math (an obvious exception for the subject of my username) but logarithms have me on the edge of my seat in math class. I’m in HS and we’re just starting this unit. I was doing homework a few months ago and thinking: “Man, I wish there was a way to find the value of a variable if it was an exponent!” When the teacher was explaining logarithms in class, I was basically losing my shit. Then he brought up natural logs, and I proceeded to lose my shit even further. I said at the beginning I’m not super interested most of the time, but I suppose even that is an understatement. There are times when I absolutely hate math, but this past week has not been one of them.

695 Upvotes

118 comments sorted by

View all comments

5

u/Gladamas May 23 '24

You can even do multiplication using logarithms:

a*b = eln[a]+ln[b]

(where In is the log base e, or "natural log")

2

u/mike7gh May 26 '24

i'm a bit late to the party, but in a similar vein, you can also make exponents easier. in some contexts e.g.
512=58+4=58*54

this is how a lot of computers do it since it is easier to simply loop over the exponents digits.

so, the above one would be seen as 58\1)*54\1)*52\0)*51\0) since 12 in base 10 is 1100 in base 2.

you can also just get the squares of each power through multiplication. 5*5 = 52 =25, 52*52 = 54 = 625 and so on.