Sin
From AutoIt Wiki
Calculates the Sine of a number. Adapted from AutoIt docs.
Contents |
Syntax
$x = Sin(expr)
Parameters
| expr | Value 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°