Tan

From AutoIt Wiki

Jump to: navigation, search

Calculates the Tangent of a number. Adapted from AutoIt docs.

Contents

Syntax

$x = Tan(expr)

Parameters

exprValue in radians. 1 deg = pi / 180 rad.

Return Value

Returns the trigonometric tangent of a number.

Example

$pi = 3.14159265358979
$x = tan($pi / 4)

$degToRad = $pi / 180
$y = Tan(90 * $degToRad)  ;tangent of 90°

Related Functions

Sin Cos ASin ACos ATan

Personal tools