05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FUNCTION REFERENCE ATAN2(A, B)<br />

ATAN2(A, B)<br />

ARGUMENT TYPE DESCRIPTION<br />

a float The value of the side that is opposite the angle theta.<br />

b float The value of the side that is adjacent to the angle theta<br />

DESCRIPTION<br />

This function is equivalent to atan(a/b), except that it also considers the sign of a and b,<br />

and thereby ensures that the return value is in the appropriate quadrant. It is also capable of<br />

handling a zero value for b, thereby avoiding the infinity that would result if the singleargument<br />

form of tan were used instead.<br />

FUNCTION TYPE<br />

This function is passive.<br />

RETURN TYPE<br />

float.<br />

EXAMPLE<br />

theta := atan2(1,1)<br />

REVISION 6 PAGE 297

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!