Atn Function

Returns the arctangent of a number. The Atn function is the inverse trigonometric function of Tan. This function takes the ratio of two sides of a right triangle (number) and returns the corresponding angle in radians. The ratio is the length of the side opposite the angle divided by the length of the side adjacent to the angle.

Atn (number)

Parameters

Number  -  (Input, expression, Required)

If a string is passed, it is first converted to numeric form. If a non-numeric value is passed, Error is returned.

Note

Do not confuse Atn with the cotangent, which is the simple inverse of a tangent (1/tangent).

To convert degrees to radians, multiply degrees by Pi/180. To convert radians to degrees, multiply radians by 180/Pi.

Return Value

An angle in radians ranging from –Pi/2 to Pi/2.

Examples

Atn (0)

Returns 0

Atn (1)

Returns 0.785398

Atn (“1.0”)

Returns 0.785398

Atn (Null)

Returns Error

Atn (Error)

Returns Error

TIP:

Functions are specifically for use in the Macro Editor. Refer to Microsoft's official VB and JScript documentation for scripting equivalents.

See Also

Functions | Abs function | Atn function | Cos function | Exp function | Fix function | Int function | Log function | Max function | Min function | Rnd function | Round function | Sgn function | Sin function | Sqr function | Tan function


© 2004-2021 looksoftware. All rights reserved.