Calculates the sine of a number.
Sin ( expression )
Parameters
expression | Value in radians. |
Return Value
Returns the trigonometric sine of number.
Remarks
1░ = pi / 180 radians.
Related
Cos, Tan, ASin, ACos, ATan
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░