Basic30 Language Reference
atan2f Function

Return the arc tangent of y/x .

Function atan2f(y as Single, x As Single) As Single

Requirements

  1. This function requires the link time library "libm.a".  It is a free download from the Microchip website.
  2. The flie <libs/math.bas> must be included in the Basic source to use this function.

Examples

#include <libs/math.bas>

Dim y,x as Single

x=atan2f(y,x)