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/tests/tan_QZ.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ic-reals-6.3/tests/tan_QZ.c (limited to 'ic-reals-6.3/tests/tan_QZ.c') diff --git a/ic-reals-6.3/tests/tan_QZ.c b/ic-reals-6.3/tests/tan_QZ.c new file mode 100644 index 0000000..4fb1e6c --- /dev/null +++ b/ic-reals-6.3/tests/tan_QZ.c @@ -0,0 +1,30 @@ +#include +#include "real.h" +#include + +/* + * Tests the tan_QZ when applied to a rational. + */ +main(int argc, char *argv[]) +{ + Real x, y; + double f; + mpz_t a, b; + + MyName = argv[0]; + + if (argc != 4) { + fprintf(stderr, "%s \n", MyName); + exit(1); + } + + initReals(); + + mpz_init_set_str(a, argv[1], 10); + mpz_init_set_str(b, argv[2], 10); + + x = tan_QZ(a, b); + + print_R_Dec(x, atoi(argv[3])); + printf("\n"); +} -- cgit v1.2.3