Tom Lake expounded in news:fqhlar$utq$1@[EMAIL PROTECTED]
> She:kon/Greetings
>
> I'm trying to ****t some Zeno programs over to BASIC and I'm stuck on
> the Zeno function ARCTANXY(x,y). According to the Zeno manual,
> it should be equal to ATN(y/x) when x and y are both non-zero.
It looks like you need an equivalent to the C function atan2(Y,X).
See http://en.wikipedia.org/wiki/Atan2
You can probably accomplish what you need with what you have, but you'll
need to code around the special cases that atan2(Y,X) is designed to
handle with greater precision. The above reference might be a starting
point for you (I'm rather rusty on this stuff at the moment).
Warren.
> I created a BASIC function that does that but the results don't match
> the Zeno output. Does anyone here know exactly what calculation to
> use for ARCTANXY? TIA
>
> Sken:nen/Peace
> Tom Lake
> Information Systems Administrator
> St. Regis Mohawk Tribe Environment Division
> 412 State Route 37
> Akwesasne, NY 13655
> (518) 358-5937 Ext. 117
>
> e-mail: tom_lake@[EMAIL PROTECTED]
>
> Website: http://www.srmtenv.org
--
Posted via a free Usenet account from http://www.teranews.com


|