1 #include "translations.h"
7 qpms_normalisation_t norm
;
11 complex double result_A
, result_B
;
12 } testcase_single_trans_t
;
14 testcase_single_trans_t testcases_Taylor
[] = {
15 #include "testcases_taylor"
19 for(testcase_single_trans_t
*tc
= testcases_Taylor
; tc
->J
!= QPMS_BESSEL_UNDEF
; tc
++) {
20 //if (tc->n > 40 || tc->nu > 40 ) continue;
22 printf("m=%d, n=%d, mu=%d, nu=%d,\n", tc
->m
,tc
->n
,tc
->mu
,tc
->nu
);
23 complex double A
= qpms_trans_single_A_Taylor(tc
->m
, tc
->n
, tc
->mu
, tc
->nu
, tc
->kdlj
, true, tc
->J
);
24 complex double B
= qpms_trans_single_B_Taylor(tc
->m
, tc
->n
, tc
->mu
, tc
->nu
, tc
->kdlj
, true, tc
->J
);
25 printf("A = %.16f+%.16fj, relerr=%.16f, J=%d\n",
26 creal(A
), cimag(A
), (0 == cabs(tc
->result_A
- A
)) ? 0 :
27 cabs(tc
->result_A
- A
)/((cabs(A
) < cabs(tc
->result_A
)) ? cabs(A
) : cabs(tc
->result_A
)),
29 printf("B = %.16f+%.16fj, relerr=%.16f, J=%d\n",
30 creal(B
), cimag(B
), (0 == cabs(tc
->result_B
- B
)) ? 0 :
31 cabs(tc
->result_B
- B
)/((cabs(B
) < cabs(tc
->result_B
)) ? cabs(B
) : cabs(tc
->result_B
)),