Sin

From AutoIt Wiki

Jump to: navigation, search

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

Contents

Syntax

$x = Sin(expr)

Parameters

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

Return Value

Returns the trigonometric Sine of a number.

Example

$pi = 3.14159265358979
$x = sin($pi / 4)  ;returns 0.707106781186547 which you should recognize as sqrt(2)/2

$degToRad = $pi / 180
$y = Sin(90 * $degToRad)  ;sine of 90°

Related Functions

Cos Tan ASin ACos ATan

Personal tools