From 32fbf04576ec9e92d6901cb35b1c33a0510e693d Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Fri, 5 Feb 2021 14:13:44 +0530 Subject: Remove unused geometric progression functions. * include/utils.h (gprate, gpterm): Delete function prototype declarations. * src/utils.c (gprate, gpterm): Delete functions. --- src/utils.c | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src') diff --git a/src/utils.c b/src/utils.c index 0e0205f..b22e07b 100644 --- a/src/utils.c +++ b/src/utils.c @@ -111,27 +111,6 @@ double rerror (double approx, double exact) return fabs(1 - approx/exact); } -double gprate (double start, double last, unsigned int n) -{ - /** - @param start First (0th) term of the geometric progression - @param last Last ('N-1'th) term of the geometric progression - @param n Number of terms in the geometric progression - @return The multiplicative factor of the geometric progression - **/ - return pow(last/start, 1.0/(n - 1)); -} - -double gpterm (double a, double r, int n) -{ - /** - @param a First (0th) term of the geometric progression - @param r Factor of the geometric progression - @return The Nth term of the geometric progression, with N starting from 0 - **/ - return a * gsl_pow_uint(r, n); -} - #define BISECTION_EPSABS 0 #define BISECTION_EPSREL 1e-6 #define BISECTION_MAX_ITERATIONS 1000 -- cgit v1.2.3