From e34821ab87a34aae35b29a8de36da933a3c72e52 Mon Sep 17 00:00:00 2001 From: Sander Schobers Date: Fri, 6 Aug 2021 19:09:26 +0200 Subject: [PATCH] Exposed Pi. --- math.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/math.go b/math.go index 6fc6ab1..6f15631 100644 --- a/math.go +++ b/math.go @@ -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)