From 11da511c784eca003deb90c23570f0873954e0de Mon Sep 17 00:00:00 2001 From: Duncan Wilkie Date: Sat, 18 Nov 2023 06:11:09 -0600 Subject: Initial commit. --- ic-reals-6.3/math-lib/acos_Q.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ic-reals-6.3/math-lib/acos_Q.c (limited to 'ic-reals-6.3/math-lib/acos_Q.c') diff --git a/ic-reals-6.3/math-lib/acos_Q.c b/ic-reals-6.3/math-lib/acos_Q.c new file mode 100644 index 0000000..f584c93 --- /dev/null +++ b/ic-reals-6.3/math-lib/acos_Q.c @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2000, Imperial College + * + * This file is part of the Imperial College Exact Real Arithmetic Library. + * See the copyright notice included in the distribution for conditions + * of use. + */ + +#include +#include "real.h" + +/* + * These will be specialized in a later version. + */ +Real +acos_QInt(int a, int b) +{ + Real r; + + r = vector_Int(a, b); + return acos_R(r); +} + +Real +acos_QZ(mpz_t a, mpz_t b) +{ + Real r; + + r = vector_Z(a, b); + return acos_R(r); +} -- cgit v1.2.3