Lines Matching +full:relative +full:- +full:axis

1 /*-
2 * Copyright (c) 2008-2013 David Schultz <das@FreeBSD.org>
38 #include "test-utils.h"
67 * Test within a given tolerance. The tolerance indicates relative error
93 testall(func, -(x), -result, exceptmask, excepts, checksign); \
97 testall(func, -(x), result, exceptmask, excepts, checksign); \
110 testall_tol(func, -(x), -result, tol); \
114 testall_tol(func, -(x), result, tol); \
129 testall_tol(cacosh, -zero, CMPLXL(0.0, -pi / 2), 1); in ATF_TC_BODY()
130 testall_tol(cacos, zero, CMPLXL(pi / 2, -0.0), 1); in ATF_TC_BODY()
131 testall_tol(cacos, -zero, CMPLXL(pi / 2, 0.0), 1); in ATF_TC_BODY()
154 * NaN,Inf Inf,NaN NaN,-Inf ?Inf,NaN ?0,pi/2 in ATF_TC_BODY()
155 * +-Inf,NaN Inf,NaN NaN,?Inf +-Inf,NaN +-0,NaN in ATF_TC_BODY()
156 * +-0,NaN NaN,NaN* pi/2,NaN NaN,NaN* +-0,NaN in ATF_TC_BODY()
187 testall(cacosh, -z, CMPLXL(INFINITY, NAN), ALL_STD_EXCEPT, 0, CS_REAL); in ATF_TC_BODY()
188 testall(cacos, z, CMPLXL(NAN, -INFINITY), ALL_STD_EXCEPT, 0, CS_IMAG); in ATF_TC_BODY()
229 * Inf,Inf Inf,pi/4 pi/4,-Inf Inf,pi/4 0,pi/2 in ATF_TC_BODY()
230 * -Inf,Inf Inf,3pi/4 3pi/4,-Inf --- --- in ATF_TC_BODY()
231 * Inf,finite Inf,0 0,-Inf Inf,0 0,pi/2 in ATF_TC_BODY()
232 * -Inf,finite Inf,pi pi,-Inf --- --- in ATF_TC_BODY()
233 * finite,Inf Inf,pi/2 pi/2,-Inf Inf,pi/2 0,pi/2 in ATF_TC_BODY()
237 testall_tol(cacosh, -z, CMPLXL(INFINITY, -c3pi / 4), 1); in ATF_TC_BODY()
238 testall_tol(cacos, z, CMPLXL(pi / 4, -INFINITY), 1); in ATF_TC_BODY()
239 testall_tol(cacos, -z, CMPLXL(c3pi / 4, INFINITY), 1); in ATF_TC_BODY()
248 testall_tol(cacosh, -z, CMPLXL(INFINITY, -pi), 1); in ATF_TC_BODY()
249 testall(cacos, z, CMPLXL(0, -INFINITY), OPT_INEXACT, 0, CS_BOTH); in ATF_TC_BODY()
250 testall_tol(cacos, -z, CMPLXL(pi, INFINITY), 1); in ATF_TC_BODY()
258 testall_tol(cacosh, -z, CMPLXL(INFINITY, -pi / 2), 1); in ATF_TC_BODY()
259 testall_tol(cacos, z, CMPLXL(pi / 2, -INFINITY), 1); in ATF_TC_BODY()
260 testall_tol(cacos, -z, CMPLXL(pi / 2, INFINITY), 1); in ATF_TC_BODY()
273 -2, -1, -0.5, 0.5, 1, 2 in ATF_TC_BODY()
279 /* Real axis */ in ATF_TC_BODY()
283 testall_tol(cacos, z, CMPLXL(acosl(nums[i]), -0.0), 1); in ATF_TC_BODY()
292 -acosh(fabsl(nums[i]))), 1); in ATF_TC_BODY()
302 /* TODO: Test the imaginary axis. */ in ATF_TC_BODY()
311 * acos(z) = Pi/4 - i ln(2)/2 in ATF_TC_BODY()
321 acos_z = CMPLXL(pi / 4, -0.34657359027997265470861606072908828L); in ATF_TC_BODY()