Navigation:  thinBasic Modules > Math > Trigonometric function >

ATAN2

Previous pageReturn to chapter overviewNext page

 

Description

 

Computes the arctangent of y / x given y and x.

 

Syntax

 

n = ATAN2(y, x)

 

Returns

 

Number.

 

Parameters

 

Name

Type

Optional

Meaning

y

Number

No

The y-coordinate of the point.

x

Number

No

The x-coordinate of the point.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

 

 

© 2004-2008 thinBasic. All rights reserved. Version 1.7.0.0 Web Site: http://www.thinbasic.com