Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Misc > Re: ARCTANXY Fu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 4 Topic 1432 of 1492
Post > Topic >>

Re: ARCTANXY Function

by Charmed Snark <snark@[EMAIL PROTECTED] > Mar 3, 2008 at 07:30 PM

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
 




 4 Posts in Topic:
ARCTANXY Function
"Tom Lake" <  2008-03-03 15:00:33 
Re: ARCTANXY Function
"Judson McClendon&qu  2008-03-03 14:11:17 
Re: ARCTANXY Function
Charmed Snark <snark@[  2008-03-03 19:30:36 
Re: ARCTANXY Function
"Tom Lake" <  2008-03-03 15:34:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 14:59:03 CDT 2008.