Difference between revisions of "MC-Basic:ATN"

From SoftMC-Wiki
Jump to: navigation, search
Line 10: Line 10:
  
 
|DESCRIPTION=
 
|DESCRIPTION=
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 +/- p/2 radians.
+
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.
  
 
|TYPE=
 
|TYPE=
Line 16: Line 16:
  
 
|RANGE=
 
|RANGE=
+/- MaxDouble
+
±MaxDouble
  
 
|UNITS=
 
|UNITS=

Revision as of 13:47, 16 March 2014

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