From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9fe315ab08ea9576 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.222.71 with SMTP id qk7mr4896011pbc.1.1328920971251; Fri, 10 Feb 2012 16:42:51 -0800 (PST) Path: wr5ni10440pbc.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail NNTP-Posting-Date: Fri, 10 Feb 2012 18:42:50 -0600 Message-ID: Date: Sat, 11 Feb 2012 00:26:58 +0000 From: Jack Mitchell Newsgroups: comp.lang.ada Subject: Re: Arctan: to use with single or with double arguments? References: <908e7aea-ed77-4dce-9f5d-e6341abc1303@s19g2000vbr.googlegroups.com> <53a2a6fa-9d48-4486-b5c7-aea81a026a82@x18g2000pro.googlegroups.com> MIME-Version: 1.0 User-Agent: Turnpike/6.06-U (<1KJUalqZpBk60Kbaa3rpJjL4hu>) X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-tmQwfOQbYmsKy0L/tIXiy4b1yC+hmVgVmIwJmWZ+7vFa4Ok3JXQRMkZf8YA99yT942QON99TLVkgNCm!8IA7igPvw8i1x19MCRlQB4+r5sp+0qmRfoOGbU8Rb5FloeQHlbepEqIlm36SPG8eH0fW2rE= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2308 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-02-11T00:26:58+00:00 List-Id: Am I missing something - surely :- z = Force * SIN(ATAN2(x,y)) Is the same as :- z = Force * x / sqrt( x^2 + y^2 ) This should be much faster (and probably more accurate) Perhaps I have got x & y swapped but you see my point. In message , Ada novice writes >On Sep 26, 9:31�am, Jeffrey Carter > wrote: >> I presume because there are some cases where one has a single-valued tangent >> that my be used in Arctan (Tangent), but not X and Y values for Arctan >>(Y, X). >> >> -- >> Jeff Carter >> "We'll make Rock Ridge think it's a chicken >> that got caught in a tractor's nuts!" >> Blazing Saddles >> 87 > >Yes I guess so. Even simple things can easily create confusion. The >Arctan and Arctan2 functions >are well-explained in Norman Cohen's Ada book on page 90. > -- Jack Mitchell