36 lines
579 B
Markdown
36 lines
579 B
Markdown
---
|
|
title: math.sin() function
|
|
description: The math.sin() function returns the sine of the radian argument `x`.
|
|
menu:
|
|
v2_0_ref:
|
|
name: math.sin
|
|
parent: Math
|
|
weight: 301
|
|
---
|
|
|
|
The `math.sin()` function returns the sine of the radian argument `x`.
|
|
|
|
_**Output data type:** Float_
|
|
|
|
```js
|
|
import "math"
|
|
|
|
math.sin(x: 3.14)
|
|
|
|
// Returns 0.0015926529164868282
|
|
```
|
|
|
|
## Parameters
|
|
|
|
### x
|
|
The radian value used in the operation.
|
|
|
|
_**Data type:** Float_
|
|
|
|
## Special cases
|
|
```js
|
|
math.sin(x: ±0) // Returns ±0
|
|
math.sin(x: ±Inf) // Returns NaN
|
|
math.sin(x: NaN) // Returns NaN
|
|
```
|