Re: atan in IDL 5.5 [message #31052 is a reply to message #31049] |
Tue, 04 June 2002 08:08   |
Randall Skelton
Messages: 169 Registered: October 2000
|
Senior Member |
|
|
Hi Zoe,
I am not sure I understand what you are trying to do. Can you please post
a snipit of code that demonstrates the problem you are having?
> I have a program which reads in an array of complex numbers, so an array
> of single numbers should be produced, but in fact another complex array os
> produced.
If you have complex numbers why are you expecting "an array of single
numbers" to be produced? What is your code doing?
> At the command-line the atan of a set of complex numbers
> produces a single number.
I disagree. If you give a complex value to atan, you will get a complex
number back.
IDL> a = complex(0.5,0.5)
IDL> help, a
A COMPLEX = ( 0.500000, 0.500000)
IDL> print, atan(a)
( 0.553574, 0.402359)
> I have disabled the multi-threading option with no effect.
This is a quantum leap... I have no idea what you are trying to do.
Cheers,
Randall
On Tue, 4 Jun 2002, Zoe Dent wrote:
> I'm having problems with the 'atan' function in IDL 5.5. I have a
> program which reads in an array of complex numbers, so an array of
> single numbers should be produced, but in fact another complex array os
> produced. At the command-line the atan of a set of complex numbers
> produces a single number. I have disabled the multi-threading option
> with no effect. I'd appreciate any advice on this matter.
>
> Many thanks,
>
> Zoe
|
|
|