Exposed Pi.
This commit is contained in:
parent
d1d4aec900
commit
e34821ab87
3
math.go
3
math.go
@ -6,6 +6,9 @@ func emulate32(f float32, fn func(float64) float64) float32 {
|
|||||||
return float32(fn(float64(f)))
|
return float32(fn(float64(f)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Pi constant https://oeis.org/A000796
|
||||||
|
const Pi = math.Pi
|
||||||
|
|
||||||
// Abs returns the absolute value.
|
// Abs returns the absolute value.
|
||||||
func Abs(f float64) float64 {
|
func Abs(f float64) float64 {
|
||||||
return math.Abs(f)
|
return math.Abs(f)
|
||||||
|
Loading…
Reference in New Issue
Block a user