diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-08-12 07:32:25 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-08-12 07:32:25 -0400 |
commit | 706fb3265d9dd21109904faade182be364190350 (patch) | |
tree | dad05e83fd5e830d65b5f0bd42ce2a5586cdd73f | |
parent | 692eb45def187e2f2dbe7e40eacf27b2058c88bd (diff) |
math: Remove unnecessary pi digits and add precomputed pi/2.
-rw-r--r-- | chickadee/math.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chickadee/math.scm b/chickadee/math.scm index 9286fe4..70c2474 100644 --- a/chickadee/math.scm +++ b/chickadee/math.scm @@ -28,8 +28,8 @@ radians->degrees) #:replace (min max)) -(define pi 3.14159265358979323846) -(define pi/2 (/ pi 2.0)) +(define pi 3.1415926535897932) +(define pi/2 1.5707963267948966) (define tau 6.283185307179586) ;; AKA 2pi (define-inlinable (cotan z) |