aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/utils.h3
-rw-r--r--src/utils.c21
2 files changed, 0 insertions, 24 deletions
diff --git a/include/utils.h b/include/utils.h
index 220320e..e28ee91 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -19,9 +19,6 @@ double gaussian_cdf (double x);
double rerror (double approx, double exact);
-double gprate (double start, double last, unsigned int n);
-double gpterm (double a, double r, int n);
-
double bisection (gsl_function* f, double a, double b);
double bisection_rlimit (gsl_function* f, double a, double b);
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