2021-01-09 17:30:54 +08:00
|
|
|
### 扩展数学函数
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 1.sin
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> sin 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
sin(a) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
sin(0)
|
|
|
|
```
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 2.cos
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> cos 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
cos(a) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
cos(0)
|
|
|
|
```
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 3.tan
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> tan 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
tan(a) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
tan(1)
|
|
|
|
```
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 4.asin
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> asin 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
asin(a) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
asin(1)
|
|
|
|
```
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 5.acos
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> acos 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
acos(a) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
acos(1)
|
|
|
|
```
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 6.atan
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> atan 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
atan(a) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
atan(1)
|
|
|
|
```
|
|
|
|
|
2021-01-13 14:04:50 +08:00
|
|
|
#### 7.pow
|
2021-01-09 17:30:54 +08:00
|
|
|
|
|
|
|
> pow 函数。
|
|
|
|
----------------------------
|
|
|
|
|
|
|
|
##### 原型
|
|
|
|
|
|
|
|
```
|
2021-01-13 14:04:50 +08:00
|
|
|
pow(a, b) => double
|
2021-01-09 17:30:54 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
#### 示例
|
|
|
|
|
|
|
|
```
|
|
|
|
pow(2, 3)
|
|
|
|
```
|
|
|
|
|