A Space & astronomy forum. SpaceBanter.com

Go Back   Home » SpaceBanter.com forum » Others » UK Astronomy
Site Map Home Authors List Search Today's Posts Mark Forums Read Web Partners

CCD and CMOS



 
 
Thread Tools Display Modes
  #1  
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.
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:20 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 SpaceBanter.com.
The comments are property of their posters.