comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: atan in IDL 5.5
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: atan in IDL 5.5 [message #31052 is a reply to message #31049] Tue, 04 June 2002 08:08 Go to previous messageGo to previous message
Randall Skelton is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: atan in IDL 5.5
Next Topic: Re: Structure reforming

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 03:13:14 PDT 2025

Total time taken to generate the page: 1.11398 seconds