mirror of
https://github.com/gonum/gonum.git
synced 2025-11-03 11:21:14 +08:00
num: clean up lint
This commit is contained in:
@@ -73,7 +73,6 @@ func dLog(x float64) float64 {
|
||||
}
|
||||
return 1 / x
|
||||
}
|
||||
func dPow(x, y float64) float64 { return y * math.Pow(x, y-1) }
|
||||
func dSqrt(x float64) float64 {
|
||||
// For whatever reason, math.Sqrt(-0) returns -0.
|
||||
// In this case, that is clearly a wrong approach.
|
||||
@@ -107,7 +106,6 @@ func d2Log(x float64) float64 {
|
||||
}
|
||||
return -1 / (x * x)
|
||||
}
|
||||
func d2Pow(x, y float64) float64 { return y * (y - 1) * math.Pow(x, y-2) }
|
||||
func d2Sqrt(x float64) float64 {
|
||||
// Again math.Sqyu, and math.Pow are odd.
|
||||
switch x {
|
||||
|
||||
Reference in New Issue
Block a user