mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-30 11:08:34 +08:00
122 lines
938 B
Markdown
122 lines
938 B
Markdown
### 扩展数学函数
|
|
|
|
#### 1.sin
|
|
|
|
> sin 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
sin(a) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
sin(0)
|
|
```
|
|
|
|
#### 2.cos
|
|
|
|
> cos 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
cos(a) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
cos(0)
|
|
```
|
|
|
|
#### 3.tan
|
|
|
|
> tan 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
tan(a) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
tan(1)
|
|
```
|
|
|
|
#### 4.asin
|
|
|
|
> asin 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
asin(a) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
asin(1)
|
|
```
|
|
|
|
#### 5.acos
|
|
|
|
> acos 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
acos(a) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
acos(1)
|
|
```
|
|
|
|
#### 6.atan
|
|
|
|
> atan 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
atan(a) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
atan(1)
|
|
```
|
|
|
|
#### 7.pow
|
|
|
|
> pow 函数。
|
|
----------------------------
|
|
|
|
##### 原型
|
|
|
|
```
|
|
pow(a, b) => double
|
|
```
|
|
|
|
#### 示例
|
|
|
|
```
|
|
pow(2, 3)
|
|
```
|
|
|