MC-Basic:ATN

From SoftMC-Wiki
Revision as of 05:39, 17 April 2017 by Chi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文(简体)‎

ATN returns the inverse tangent of the expression in radians. The expression is the ratio of the length on the y-axis to the length on the x-axis, and the result is in the range ±π/2 radians.

Syntax

Atn(<expression>)

Availability

All versions

Type

Double

Range

±MaxDouble

Scope

Configuration, Task or Terminal

Limitations

Read only

Examples

Program
       Dim x as double
       Dim y as double
       Dim Theta as double
       x=1
       y=2
       Theta=ATN(y/x)

End Program

See Also