On Thu, 23 Jan 2003, Canfield, Andrew wrote: > Second question does anyone have a Mapbasic Atan2 function that they would > like to share?
>From Ed Williams' "Aviation Formulary" page at http://williams.best.vwh.net/avform.htm#Math, Ata2(x,y) can be defined as: atan2(y,x)=atan(y/x) x>0 atan2(y,x)=atan(y/x)+pi x<0, y>=0 atan2(y,x)=pi/2 x=0, y>0 atan2(y,x)=atan(y/x)-pi x<0, y<0 atan2(y,x)=-pi/2 x=0, y<0 atan2(0,0) is undefined and should give an error. - Bill Thoen --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 5096