aboutsummaryrefslogtreecommitdiff
path: root/src/test.c
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2018-08-31 10:05:03 -0500
committertlatorre <tlatorre@uchicago.edu>2018-08-31 10:05:03 -0500
commit37510bc23ab8ba5266998c15fb48c869ef7ca796 (patch)
tree0b36a60184ef5bebaafeabbdd429cc748be28fca /src/test.c
parent56e663aa644c5a7c5ca620c3f688cdd7fbefdc7d (diff)
downloadsddm-37510bc23ab8ba5266998c15fb48c869ef7ca796.tar.gz
sddm-37510bc23ab8ba5266998c15fb48c869ef7ca796.tar.bz2
sddm-37510bc23ab8ba5266998c15fb48c869ef7ca796.zip
rotate and translate the path in path_init to speed things up
Diffstat (limited to 'src/test.c')
-rw-r--r--src/test.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/test.c b/src/test.c
index baf0914..cc054c0 100644
--- a/src/test.c
+++ b/src/test.c
@@ -108,15 +108,6 @@ struct solid_angle_results {
{2.0,2.0,0.282707}
};
-int isclose(double a, double b, double rel_tol, double abs_tol)
-{
- /* Returns 1 if a and b are "close". This algorithm is taken from Python's
- * math.isclose() function.
- *
- * See https://www.python.org/dev/peps/pep-0485/. */
- return fabs(a-b) <= fmax(rel_tol*fmax(fabs(a),fabs(b)),abs_tol);
-}
-
int test_muon_get_T(char *err)
{
/* A very simple test to make sure the energy as a function of distance