sin
mathCalculates the sine of an angle in radians
Syntax
sin(number) Parameters
number (number) The angle in radians
Returns
number The sine of the angle
Examples
Input:
pi / 2 | sin Output:
1 Input:
sin(0) Output:
0 Input:
pi / 6 | sin Output:
0.5 The sin() function calculates the sine of an angle provided in radians.
Usage
Use sin() for trigonometric calculations, wave functions, or geometric computations. Remember that input must be in radians.