I was trying to compile some source codebut it requires the use of a function log2(). I can only find log() and log10(). If anybody knows where it is how how to do log2 of a variable i would reaaly appreciate any help.
Thanks
Scott
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
OOooooh, basic math *grin*. Remember kids,
loga(b) equals logc(b)/logc(a) for any c.
(kinda easy to proof, to).
so just do a log(x)/log(2) and you should be fine, wether you use the 10-log or the natural log.