num: clean up lint

This commit is contained in:
Dan Kortschak
2019-11-01 21:50:04 +10:30
parent 623f346311
commit 8a8ca5dcda
8 changed files with 19 additions and 61 deletions

View File

@@ -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 {