xyosc/vendor/github.com/chewxy/math32/lgamma.go
2024-12-21 17:38:26 +01:00

9 lines
148 B
Go

package math32
import "math"
func Lgamma(x float32) (lgamma float32, sign int) {
lg, sign := math.Lgamma(float64(x))
return float32(lg), sign
}