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

Home » Public Forums » archive » Re: IDL trig functions
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: IDL trig functions [message #2881] Fri, 02 September 1994 12:09
amaravad is currently offline  amaravad
Messages: 11
Registered: September 1994
Junior Member
In article <3454vl$1kbp@yuma.ACNS.ColoState.EDU> dean%phobos.dnet@sirius.cira.colostate.edu writes:
>
> Are there IDL equilivents to the following FORTRAN trig double precision
> intrinsic functions?
>
> DSIN()
> DCOS()
> DTAN()
> DATAN()
> ATAN2()
> DATAN2()
>
> Kelly Dean

The IDL functions SIN,ASIN,COS,ACOS,TAN, and ATAN will return a double
precision result if their arguments are of double precision. In
general these functions return results which are of the same type
as their arguments.

ratty

Indiana University School of Medicine


--
This is my .sig file and not yours...
Re: IDL trig functions [message #2890 is a reply to message #2881] Thu, 01 September 1994 15:56 Go to previous message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
dean@phobos.cira.colostate.edu writes:


> Are there IDL equilivents to the following FORTRAN trig double precision
> intrinsic functions?

> DSIN()
> DCOS()
> DTAN()
> DATAN()
> ATAN2()
> DATAN2()

IDL functions are generic. You can use any of the trigonometric functions with
either single or double precision arguments, and the precision of the result is
the same as the precision of the argument. (If you give them integer
arguments, you get a floating point result, which makes sense.) You can even
give them complex arguments and get a complex result.

The ATAN function in IDL can take either 1 or 2 arguments, so it fulfills the
role of both ATAN and ATAN2 in FORTRAN (as well as DATAN and DATAN2).

Bill Thompson
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: background jobs in IDL.....
Next Topic: Re: background jobs in IDL.....

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

Current Time: Wed Oct 08 19:27:38 PDT 2025

Total time taken to generate the page: 0.00532 seconds