aboutsummaryrefslogtreecommitdiff
path: root/src/math
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-05-05 22:45:32 +0800
committerGopher Robot <gobot@golang.org>2023-06-13 20:02:49 +0000
commit8b53c2d2fc2b6a5a2b2b88b07473a7e4b9974739 (patch)
tree233fed816a0ce8dff59c742b92f507476dd0fb81 /src/math
parent70cb990b15807eb61351b8fbeac28704240787bd (diff)
downloadgo-8b53c2d2fc2b6a5a2b2b88b07473a7e4b9974739.tar.xz
all: fix mismatched symbols
There are some symbol mismatches in the comments, this commit attempts to fix them Change-Id: I5c9075e5218defe9233c075744d243b26ff68496 Reviewed-on: https://go-review.googlesource.com/c/go/+/492996 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Run-TryBot: Michael Pratt <mpratt@google.com> Auto-Submit: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/math')
-rw-r--r--src/math/asinh.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/asinh.go b/src/math/asinh.go
index 6f6e9e4608..d913239d1e 100644
--- a/src/math/asinh.go
+++ b/src/math/asinh.go
@@ -25,7 +25,7 @@ package math
// asinh(x) = sign(x) * log [ |x| + sqrt(x*x+1) ]
// we have
// asinh(x) := x if 1+x*x=1,
-// := sign(x)*(log(x)+ln2)) for large |x|, else
+// := sign(x)*(log(x)+ln2) for large |x|, else
// := sign(x)*log(2|x|+1/(|x|+sqrt(x*x+1))) if|x|>2, else
// := sign(x)*log1p(|x| + x**2/(1 + sqrt(1+x**2)))
//