Thread: CCD and CMOS
View Single Post
  #7  
Old January 1st 05, 01:30 PM
Dr John Stockton
external usenet poster
 
Posts: n/a
Default

JRS: In article , dated Fri, 31
Dec 2004 15:29:49, seen in news:uk.sci.astronomy, Fleetie
posted :

On the flipside, Google's "calculator" doesn't know what atan2() is.


If it has Arctan, you can get atan2 by the method of

function AT2(byval Y, X)
if Y0 then
AT2 = 2.0 * Arctan( Y / ( X + Sqr(X*X+Y*Y) ) )
else
if X0 then AT2 = Pi else AT2 = 0.0
end if
end function

See URL:http://www.merlyn.demon.co.uk/vb-maths.htm#AT2 and
URL:http://www.merlyn.demon.co.uk/pas-math.htm#TrigFuncs

Alternatively, take a copy of
URL:http://www.merlyn.demon.co.uk/js-quick.htm
and calculate in javascript.

--
© John Stockton, Surrey, UK. Turnpike v4.00 IE 4 ©
URL:http://www.jibbering.com/faq/ JL/RC: FAQ of news:comp.lang.javascript
URL:http://www.merlyn.demon.co.uk/js-index.htm jscr maths, dates, sources.
URL:http://www.merlyn.demon.co.uk/ TP/BP/Delphi/jscr/&c, FAQ items, links.