aboutsummaryrefslogtreecommitdiff
path: root/src/misc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.h')
-rw-r--r--src/misc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/misc.h b/src/misc.h
index e06e323..60e54ea 100644
--- a/src/misc.h
+++ b/src/misc.h
@@ -27,6 +27,9 @@
#define LN_MAX 100
#define LNFACT_MAX 100
+/* Number of points to create a lookup table for the fast_acos() function. */
+#define N_ACOS 10000
+
double trapz(const double *y, double dx, size_t n);
int intersect_sphere(double *pos, double *dir, double R, double *l);
void get_path_length(double *pos1, double *pos2, double R, double *l1, double *l2);
@@ -51,5 +54,6 @@ void combinations_with_replacement(size_t n, size_t r, size_t *result, size_t *l
size_t argmax(double *a, size_t n);
size_t argmin(double *a, size_t n);
void get_dir(double *dir, double theta, double phi);
+double fast_acos(double x);
#endif