Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
herdrick
on Dec 6, 2011
|
parent
|
context
|
favorite
| on:
Google can be used as a graphic calculator
Anyone know how to denote 'log base 2'? This: "log (x)" assumes base 10.
bluishgreen
on Dec 6, 2011
|
next
[–]
For any base use the formula: (log base b) a = log(a)/log(b). For eg. google for log(x)/log(2), lg(x), log(x)/log(3)
lilyball
on Dec 6, 2011
|
prev
|
next
[–]
I believe it's just "lg(x)", though you could also use the more generic case of "log(x)/log(base)"
spacemanaki
on Dec 6, 2011
|
prev
|
next
[–]
Try lg(x) ?
herdrick
on Dec 7, 2011
|
parent
|
next
[–]
that's it, thanks
mvgoogler
on Dec 6, 2011
|
prev
|
next
[–]
lg(x) works for me.
herdrick
on Dec 7, 2011
|
parent
|
next
[–]
thanks!
megablast
on Dec 6, 2011
|
prev
[–]
ln? Isn't log base 2 the natural log?
Yup, that works.
woodson
on Dec 6, 2011
|
parent
[–]
ln should be base e.
Cf.
http://en.wikipedia.org/wiki/Natural_logarithm
megablast
on Dec 6, 2011
|
root
|
parent
[–]
Oh yes, ok. Ignore my post. I forgot for a second that there was more than 2 numbers in the Universe.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: