Exposed Pi.

This commit is contained in:
Sander Schobers 2021-08-06 19:09:26 +02:00
parent d1d4aec900
commit e34821ab87

View File

@ -6,6 +6,9 @@ func emulate32(f float32, fn func(float64) float64) float32 {
return float32(fn(float64(f)))
}
// Pi constant https://oeis.org/A000796
const Pi = math.Pi
// Abs returns the absolute value.
func Abs(f float64) float64 {
return math.Abs(f)