Skip to content
Paul Squires edited this page Oct 19, 2026 · 3 revisions

Home › Mathematical Functions › Atn

Atn

Returns the angle in radians, from -pi/2 to pi/2, whose tangent is the number.

Syntax

Declare Function Atn ( ByVal number As Double ) As Double

Parameters

  • number

Description

Atn returns the arctangent of the argument number as a Double within the range of -Pi/2 to Pi/2. The arctangent is the inverse of the Tan function. The returned angle is measured in radians (not degrees).

Atn can be overloaded as operator to accept user-defined types.

Return Value

The angle, in radians, whose tangent is number, in the range [-Pi/2..Pi/2].

Remarks

Usage

result = Atn( number )

Differences from QB

  • None

See also

Examples

Print "Pi ="; Atn ( 1.0 ) * 4

Print Atn ( 4 / 5 )

The output would be:

Pi = 3.141592653589793
0.6747409422235527

Category: Mathematical Functions
Kind: function


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally