Skip to content

Commit

Permalink
fix: Fixed description of math function (#817)
Browse files Browse the repository at this point in the history
* fix: Fixed description of math.sqrt function

* fix: fix math.asin description

* Update lua.md
  • Loading branch information
Fengjing95 authored Aug 18, 2024
1 parent c4ebb48 commit d604a0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/lua.md
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ local g = math.max(1, 2, 3) -- 3
local h = math.min(1, 2, 3) -- 1

-- 返回参数的平方根
local r = math.sqrt(3) -- 9
local r = math.sqrt(9) -- 3
```

### 工具方法
Expand Down Expand Up @@ -701,10 +701,10 @@ math.cos(math.pi) -- -1.0
math.tan(math.pi / 4) -- 1.0

-- 反正弦方法(以下皆是以弧度表示)
math.acos(1.0) -- 0.0
math.asin(1.0) -- 1.5707963267949
-- 反余弦方法
math.acos(1.0) -- 1.5707963267949
-- 反正弦方法
math.acos(1.0) -- 0.0
-- 反正切方法
math.atan(1.0) -- 0.78539816339745

-- 角度转换为弧度
Expand Down

0 comments on commit d604a0d

Please sign in to comment.