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 2 of 4 Topic 1432 of 1492
Post > Topic >>

Re: ARCTANXY Function

by "Judson McClendon" <judmc@[EMAIL PROTECTED] > Mar 3, 2008 at 02:11 PM

"Tom Lake" <tlake@[EMAIL PROTECTED]
> wrote:
> 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.
> 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

Hi Tom. I don't know about Zeno BASIC, but appears that ARCTANXY() is an
implementation of the ATN2(x,y) function. The difference 
between ATN(n) and ATN2(x,y) is that the ATN2(x,y) takes the actual X,Y
offsets and returns the true angle resolved within the full 
360 degree circle. You can download ATN2.ZIP in any of several BASIC
flavors from my website, which contains a function to calculate 
ATN2(x,y).
-- 
Judson McClendon       judmc@[EMAIL PROTECTED]
 (remove zero)
Sun Valley Systems     http://sunvaley.com
"For God so loved the world that He gave His only begotten Son, that
whoever believes in Him should not perish but have everlasting life."
 




 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 Sat Jul 26 2:40:28 CDT 2008.