5 ms·
Anyone know how to denote 'log base 2'? This: "log (x)" assumes base 10.
by herdrick 15y ago
Anyone know how to denote 'log base 2'? This: "log (x)" assumes base 10.
- spacemanaki 15y agoTry lg(x) ?
- herdrick 15y agothat's it, thanks
- eridius 15y agoI believe it's just "lg(x)", though you could also use the more generic case of "log(x)/log(base)"
- mvgoogler 15y agolg(x) works for me.
- herdrick 15y agothanks!
- deleted 15y ago[deleted]
- bluishgreen 15y agoFor 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)
- megablast 15y agoln? Isn't log base 2 the natural log? Yup, that works.