about log2 for octave-3.1.51 (Not 3.1.50)
Tatsuro MATSUOKA
tmacchant at yahoo.co.jp
Fri Jul 25 02:08:10 CDT 2008
Hello
--- "John W. Eaton" <jwe at bevo.che.wisc.edu> wrote:
> Can you please find out where and how it is defined? There is nothing
> in the Octave source code that #defines it.
>
> | I think that the lines like the following will be required
> |
> | #ifndef HAVE_LOG2
> | #define log2(x) xlog2(x)
> | #endif
>
It is defined in math.h and
#define log2(x) (log (x) / M_LOG2_E)
:
#define M_LOG2_E 0.693147180559945309417
Regards
Tatsuro
--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/
More information about the Bug-octave
mailing list