aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArun Isaac2021-02-05 14:13:44 +0530
committerArun Isaac2021-02-05 14:13:44 +0530
commit32fbf04576ec9e92d6901cb35b1c33a0510e693d (patch)
tree60395a258a1ab3bc29478ea4b0402830d4cd3b55 /src
parentb5d263029323217f8d2793f7b22f0f180253fe1f (diff)
downloadnsmc-32fbf04576ec9e92d6901cb35b1c33a0510e693d.tar.gz
nsmc-32fbf04576ec9e92d6901cb35b1c33a0510e693d.tar.lz
nsmc-32fbf04576ec9e92d6901cb35b1c33a0510e693d.zip
Remove unused geometric progression functions.
* include/utils.h (gprate, gpterm): Delete function prototype declarations. * src/utils.c (gprate, gpterm): Delete functions.
Diffstat (limited to 'src')
-rw-r--r--src/utils.c21
1 files changed, 0 insertions, 21 deletions
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