bug in imag()

Luca Lanci luca.lanci at uniurb.it
Mon Dec 15 18:01:21 CST 2008


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

Luca Lanci
Istituto di scienze della Terra
Università di Urbino
Campus scientifico SOGESTA
61100 Urbino, (PU)
Italia

http://www.uniurb.it/lanci/


La presente e-mail e' ad uso personale dei destinatari: ai sensi dell'  
Art. 23 del Decreto Legislativo 30/6/2003 n.196, chi la riceve non  
puo' divulgarla ad altri senza chiederne il preventivo consenso al  
mittente.




More information about the Bug-octave mailing list