Skip to content

Commit 73eb24c

Browse files
surechenrasky
authored andcommitted
math: Remove redundant local variable Ln2
Use the const variable Ln2 in math/const.go for function acosh. Change-Id: I5381d03dd3142c227ae5773ece9be6c8f377615e Reviewed-on: https://go-review.googlesource.com/c/go/+/232517 Reviewed-by: Robert Griesemer <[email protected]> Trust: Robert Griesemer <[email protected]> Trust: Giovanni Bajo <[email protected]>
1 parent 58fe2cd commit 73eb24c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/math/acosh.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ package math
4242
func Acosh(x float64) float64
4343

4444
func acosh(x float64) float64 {
45-
const (
46-
Ln2 = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF
47-
Large = 1 << 28 // 2**28
48-
)
45+
const Large = 1 << 28 // 2**28
4946
// first case is special case
5047
switch {
5148
case x < 1 || IsNaN(x):

0 commit comments

Comments
 (0)