Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fixed description of math function #817

Merged
merged 3 commits into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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