- Zkuld@lemmy.worldEnglish2 days
on the other hand ln(67) = 4.20469… there certainly is some merit to the new meme number
- pcouy@lemmy.pierre-couy.frEnglish3 days
I never knew this fun fact ! I’ll try to use it with my students, and see if I this gets me more attention when I give them the trick to compute powers of 2 in your head (210 =~ 103, which leads to ln(103) =~ 10*ln(2) ).
For anyone wondering, the trick is : Powers of 2 below 10 are easy enough to remember or just compute in your head. So if you want to approximate 2x, write it as (210*a)*(2b), with
a=x//10(integer division) andb=x%10(modulo).bwill be 9 or less, so 2b is easy to compute, and 210*a = (210)a =~ 1000a is also easy to compute.For instance, 232 = (230)(22). Since 230=~10003 ; and 22=4, then 232 =~ 4(1000)^3 = 4 billion. Once you get used to it, you’ll be able to say that 264 is approx 16 billion billions in no time ! :)
- 3 days
‘ln’? My brother in Euler, that’s jist log. We aren’t engineers [derogatory].
- mkwt@lemmy.worldEnglish2 days
math.h provides log() for the natural logarithm, and log10() for the common logarithm. There is no ln() unless you write it yourself.
- WaterWaiver@aussie.zoneEnglish1 day
o.o I had completely forgotten this.
Next you’re going to tell me that strlcpy() is not real. I will not believe you. I will choose not to believe you.


