bug in imag()
Sergei Steshenko
sergstesh at yahoo.com
Mon Dec 15 18:39:11 CST 2008
--- On Mon, 12/15/08, Luca Lanci <luca.lanci at uniurb.it> wrote:
> From: Luca Lanci <luca.lanci at uniurb.it>
> Subject: bug in imag()
> To: bug-octave at octave.org
> Date: Monday, December 15, 2008, 4:01 PM
> Strange behaviour of function imag()
>
>
> ------------
> GNU Octave, version 3.0.1
> Copyright (C) 2008 John W. Eaton and others.
> This is free software; see the source code for copying
> conditions.
> There is ABSOLUTELY NO WARRANTY; not even for
> MERCHANTIBILITY or
> FITNESS FOR A PARTICULAR PURPOSE. For details, type
> `warranty'.
>
> Octave was configured for
> "i386-apple-darwin8.9.1".
>
> octave-3.0.1:43> a=complex(2,5)
> a = 2 + 5i
> octave-3.0.1:44> real(a)
> ans = 2
> octave-3.0.1:45> imag(a)
> error: complex scalar type invalid as index value
> <--?????
>
>
>
> Regards, luca
Works fine for me in 3.0.3 on IA32 SUSE-10.3. Did you by any chance define
your own function called 'imag' ?
Regards,
Sergei.
More information about the Bug-octave
mailing list