From 1407f74d36f719a1ac96c491a2558126554b0eeb Mon Sep 17 00:00:00 2001
From: Ezekiel Dohmen <ezekiel.dohmen@ligo.org>
Date: Thu, 14 Apr 2022 10:23:32 -0700
Subject: [PATCH] Documenting max percent error

---
 src/include/qnorm.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/include/qnorm.h b/src/include/qnorm.h
index 062d4a58a..a3700d1ce 100644
--- a/src/include/qnorm.h
+++ b/src/include/qnorm.h
@@ -126,7 +126,7 @@
 
 // This is a simplified 9th order Taylor polynomial for e^x
 //
-// This has a maximum abs error of 0.00000033 over the (0,1)
+// This has a maximum percent error of 0.000011% over the (0,1)
 // range, which is where we use it here
 //
 static inline double taylor_9th_exp(double x)
@@ -154,8 +154,8 @@ fastlog2 (float x)
            - 1.72587999f / (0.3520887068f + mx.f);
 }
 
-// The maximum error over the (0,1] range is 0.000101
-// with the use of this acceleration 
+// The maximum error over the (0,1] range is a percent error of
+// 0.000773% with the use of this acceleration 
 static inline float
 fastlog (float x)
 {
-- 
GitLab