Full name
math.sin
Library
math
Syntax
math.sin(x)
Description
The math.sin function returns the sine of the angle included as an argument.
Parameters
- x: Angle in radians whose sine is to be obtained.
Result
The math.sin function returns a real number.
Examples
We can obtain the sine of the angle π / 2 with the following code:
math.sin(math.pi / 2)
1.0