Re: IDL trig functions [message #2881] |
Fri, 02 September 1994 12:09 |
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  |
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
|
|
|