1 # Begin of automatic generation
4 Test "asin (-0.5) == -pi/6":
7 Test "asin (0.5) == pi/6":
10 Test "asin (0.7) == 0.7753974966107530637":
17 Test "atanh (0.7) == 0.8673005276940531944":
22 Test "cabs (-0.7 + 12.4 i) == 12.41974234837422060118":
25 Test "cabs (-0.7 - 12.4 i) == 12.41974234837422060118":
28 Test "cabs (-12.4 + 0.7 i) == 12.41974234837422060118":
31 Test "cabs (-12.4 - 0.7 i) == 12.41974234837422060118":
34 Test "cabs (0.7 + 1.2 i) == 1.3892443989449804508":
37 Test "cabs (0.7 + 12.4 i) == 12.41974234837422060118":
42 Test "Real part of: cacos (0.7 + 1.2 i) == 1.1351827477151551089 - 1.0927647857577371459 i":
47 Test "Imaginary part of: cacos (0.7 + 1.2 i) == 1.1351827477151551089 - 1.0927647857577371459 i":
52 Test "Real part of: cacosh (-2 - 3 i) == -1.9833870299165354323 + 2.1414491111159960199 i":
57 Test "Imaginary part of: cacosh (-2 - 3 i) == -1.9833870299165354323 + 2.1414491111159960199 i":
62 Test "Real part of: cacosh (0.7 + 1.2 i) == 1.0927647857577371459 + 1.1351827477151551089 i":
69 Test "Real part of: casin (0.7 + 1.2 i) == 0.4356135790797415103 + 1.0927647857577371459 i":
74 Test "Imaginary part of: casin (0.7 + 1.2 i) == 0.4356135790797415103 + 1.0927647857577371459 i":
79 Test "Real part of: casinh (-2 - 3 i) == -1.9686379257930962917 - 0.9646585044076027920 i":
84 Test "Imaginary part of: casinh (-2 - 3 i) == -1.9686379257930962917 - 0.9646585044076027920 i":
89 Test "Real part of: casinh (0.7 + 1.2 i) == 0.9786545955936738768 + 0.9113541895315601156 i":
92 Test "Imaginary part of: casinh (0.7 + 1.2 i) == 0.9786545955936738768 + 0.9113541895315601156 i":
97 Test "Real part of: catan (-2 - 3 i) == -1.4099210495965755225 - 0.2290726829685387662 i":
100 Test "Imaginary part of: catan (-2 - 3 i) == -1.4099210495965755225 - 0.2290726829685387662 i":
105 Test "Real part of: catan (0.7 + 1.2 i) == 1.0785743834118921877 + 0.5770573776534306764 i":
108 Test "Imaginary part of: catan (0.7 + 1.2 i) == 1.0785743834118921877 + 0.5770573776534306764 i":
115 Test "Real part of: catanh (-2 - 3 i) == -0.1469466662255297520 - 1.3389725222944935611 i":
118 Test "Imaginary part of: catanh (-2 - 3 i) == -0.1469466662255297520 - 1.3389725222944935611 i":
121 Test "Imaginary part of: catanh (0.7 + 1.2 i) == 0.2600749516525135959 + 0.9702403077950989849 i":
128 Test "cbrt (-27.0) == -3.0":
131 Test "cbrt (0.970299) == 0.99":
136 Test "Imaginary part of: ccos (-2 - 3 i) == -4.1896256909688072301 - 9.1092278937553365979 i":
139 Test "Real part of: ccos (0.7 + 1.2 i) == 1.3848657645312111080 - 0.97242170335830028619 i":
142 Test "Imaginary part of: ccos (0.7 + 1.2 i) == 1.3848657645312111080 - 0.97242170335830028619 i":
147 Test "Real part of: ccosh (-2 - 3 i) == -3.7245455049153225654 + 0.5118225699873846088 i":
150 Test "Imaginary part of: ccosh (-2 - 3 i) == -3.7245455049153225654 + 0.5118225699873846088 i":
153 Test "Real part of: ccosh (0.7 + 1.2 i) == 0.4548202223691477654 + 0.7070296600921537682 i":
158 Test "Imaginary part of: ccosh (0.7 + 1.2 i) == 0.4548202223691477654 + 0.7070296600921537682 i":
163 Test "Imaginary part of: cexp (-2.0 - 3.0 i) == -0.1339809149295426134 - 0.0190985162611351964 i":
166 Test "Real part of: cexp (0.7 + 1.2 i) == 0.7296989091503236012 + 1.8768962328348102821 i":
171 Test "Imaginary part of: cexp (0.7 + 1.2 i) == 0.7296989091503236012 + 1.8768962328348102821 i":
176 Test "Imaginary part of: clog (-2 - 3 i) == 1.2824746787307683680 - 2.1587989303424641704 i":
183 Test "Imaginary part of: clog10 (-0 + inf i) == inf + pi/2*log10(e) i":
186 Test "Imaginary part of: clog10 (-0 - inf i) == inf - pi/2*log10(e) i":
189 Test "Imaginary part of: clog10 (-2 - 3 i) == 0.5569716761534183846 - 0.9375544629863747085 i":
194 Test "Imaginary part of: clog10 (-3 + inf i) == inf + pi/2*log10(e) i":
197 Test "Imaginary part of: clog10 (-3 - inf i) == inf - pi/2*log10(e) i":
200 Test "Imaginary part of: clog10 (-inf + 0 i) == inf + pi*log10(e) i":
203 Test "Imaginary part of: clog10 (-inf + 1 i) == inf + pi*log10(e) i":
206 Test "Imaginary part of: clog10 (-inf - 0 i) == inf - pi*log10(e) i":
209 Test "Imaginary part of: clog10 (-inf - 1 i) == inf - pi*log10(e) i":
212 Test "Imaginary part of: clog10 (0 + inf i) == inf + pi/2*log10(e) i":
215 Test "Imaginary part of: clog10 (0 - inf i) == inf - pi/2*log10(e) i":
218 Test "Real part of: clog10 (0.7 + 1.2 i) == 0.1427786545038868803 + 0.4528483579352493248 i":
223 Test "Imaginary part of: clog10 (0.7 + 1.2 i) == 0.1427786545038868803 + 0.4528483579352493248 i":
226 Test "Imaginary part of: clog10 (3 + inf i) == inf + pi/2*log10(e) i":
229 Test "Imaginary part of: clog10 (3 - inf i) == inf - pi/2*log10(e) i":
232 Test "Imaginary part of: clog10 (inf + inf i) == inf + pi/4*log10(e) i":
235 Test "Imaginary part of: clog10 (inf - inf i) == inf - pi/4*log10(e) i":
240 Test "cos (0.7) == 0.7648421872844884262":
245 Test "cos (M_PI_6l * 2.0) == 0.5":
250 Test "cos (M_PI_6l * 4.0) == -0.5":
255 Test "cos (pi/2) == 0":
262 Test "Real part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
267 Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i) == -119.0 - 120.0 i":
270 Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i) == 1.0 + 0.0 i":
277 Test "Imaginary part of: csin (0.7 + 1.2 i) == 1.1664563419657581376 + 1.1544997246948547371 i":
282 Test "Imaginary part of: csinh (-2 - 3 i) == 3.5905645899857799520 - 0.5309210862485198052 i":
285 Test "Real part of: csinh (0.7 + 1.2 i) == 0.27487868678117583582 + 1.1698665727426565139 i":
288 Test "Imaginary part of: csinh (0.7 + 1.2 i) == 0.27487868678117583582 + 1.1698665727426565139 i":
293 Test "Real part of: csqrt (-2 + 3 i) == 0.8959774761298381247 + 1.6741492280355400404 i":
296 Test "Real part of: csqrt (-2 - 3 i) == 0.8959774761298381247 - 1.6741492280355400404 i":
299 Test "Real part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
304 Test "Imaginary part of: csqrt (0.7 + 1.2 i) == 1.0220676100300264507 + 0.5870453129635652115 i":
309 Test "Real part of: ctan (-2 - 3 i) == 0.0037640256415042482 - 1.0032386273536098014 i":
312 Test "Real part of: ctan (0.7 + 1.2 i) == 0.1720734197630349001 + 0.9544807059989405538 i":
315 Test "Imaginary part of: ctan (0.7 + 1.2 i) == 0.1720734197630349001 + 0.9544807059989405538 i":
322 Test "Real part of: ctanh (-2 - 3 i) == -0.9653858790221331242 + 0.0098843750383224937 i":
327 Test "Imaginary part of: ctanh (0 + pi/4 i) == 0.0 + 1.0 i":
330 Test "Real part of: ctanh (0.7 + 1.2 i) == 1.3472197399061191630 + 0.4778641038326365540 i":
335 Test "Imaginary part of: ctanh (0.7 + 1.2 i) == 1.3472197399061191630 + 0.4778641038326365540 i":
342 Test "erfc (0.7) == 0.32219880616258152702":
345 Test "erfc (1.2) == 0.089686021770364619762":
350 Test "erfc (2.0) == 0.0046777349810472658379":
353 Test "erfc (4.1) == 0.67000276540848983727e-8":
360 Test "exp10 (-1) == 0.1":
365 Test "exp10 (0.7) == 5.0118723362727228500":
368 Test "exp10 (3) == 1000":
375 Test "expm1 (1) == M_El - 1.0":
380 Test "fmod (-6.5, -2.3) == -1.9":
385 Test "fmod (-6.5, 2.3) == -1.9":
390 Test "fmod (6.5, -2.3) == 1.9":
395 Test "fmod (6.5, 2.3) == 1.9":
402 Test "hypot (-0.7, -12.4) == 12.41974234837422060118":
405 Test "hypot (-0.7, 12.4) == 12.41974234837422060118":
408 Test "hypot (-12.4, -0.7) == 12.41974234837422060118":
411 Test "hypot (-12.4, 0.7) == 12.41974234837422060118":
414 Test "hypot (0.7, -12.4) == 12.41974234837422060118":
417 Test "hypot (0.7, 1.2) == 1.3892443989449804508":
420 Test "hypot (0.7, 12.4) == 12.41974234837422060118":
423 Test "hypot (12.4, -0.7) == 12.41974234837422060118":
426 Test "hypot (12.4, 0.7) == 12.41974234837422060118":
431 Test "j0 (10.0) == -0.24593576445134833520":
436 Test "j0 (8.0) == 0.17165080713755390609":
441 Test "j1 (10.0) == 0.043472746168861436670":
444 Test "j1 (2.0) == 0.57672480775687338720":
447 Test "j1 (8.0) == 0.23463634685391462438":
452 Test "jn (0, 10.0) == -0.24593576445134833520":
457 Test "jn (0, 8.0) == 0.17165080713755390609":
460 Test "jn (1, 10.0) == 0.043472746168861436670":
463 Test "jn (1, 2.0) == 0.57672480775687338720":
466 Test "jn (1, 8.0) == 0.23463634685391462438":
469 Test "jn (10, 0.1) == 0.26905328954342155795e-19":
474 Test "jn (10, 0.7) == 0.75175911502153953928e-11":
479 Test "jn (10, 10.0) == 0.20748610663335885770":
482 Test "jn (10, 2.0) == 0.25153862827167367096e-6":
485 Test "jn (3, 0.1) == 0.000020820315754756261429":
488 Test "jn (3, 0.7) == 0.0069296548267508408077":
491 Test "jn (3, 10.0) == 0.058379379305186812343":
496 Test "jn (3, 2.0) == 0.12894324947440205110":
503 Test "lgamma (0.7) == 0.26086724653166651439":
508 Test "lgamma (1.2) == -0.853740900033158497197e-1":
515 Test "log (0.7) == -0.35667494393873237891":
522 Test "log10 (0.7) == -0.15490195998574316929":
527 Test "log10 (e) == log10(e)":
532 Test "log1p (-0.3) == -0.35667494393873237891":
539 Test "log2 (0.7) == -0.51457317282975824043":
546 Test "sincos (0.7, &sin_res, &cos_res) puts 0.76484218728448842626 in cos_res":
551 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.5 in cos_res":
556 Test "sincos (M_PI_6l*2.0, &sin_res, &cos_res) puts 0.866025403784438646764 in sin_res":
561 Test "sincos (pi/2, &sin_res, &cos_res) puts 0 in cos_res":
566 Test "sincos (pi/6, &sin_res, &cos_res) puts 0.866025403784438646764 in cos_res":
571 Test "sinh (0.7) == 0.75858370183953350346":
578 Test "tan (pi/4) == 1":
583 Test "tanh (0.7) == 0.60436777711716349631":
590 Test "tgamma (-0.5) == -2 sqrt (pi)":
595 Test "tgamma (0.5) == sqrt (pi)":
598 Test "tgamma (0.7) == 1.29805533264755778568":
605 Test "y0 (0.7) == -0.19066492933739506743":
608 Test "y0 (1.0) == 0.088256964215676957983":
613 Test "y0 (1.5) == 0.38244892379775884396":
618 Test "y0 (10.0) == 0.055671167283599391424":
623 Test "y0 (2.0) == 0.51037567264974511960":
626 Test "y0 (8.0) == 0.22352148938756622053":
633 Test "y1 (0.1) == -6.4589510947020269877":
636 Test "y1 (0.7) == -1.1032498719076333697":
641 Test "y1 (1.5) == -0.41230862697391129595":
644 Test "y1 (10.0) == 0.24901542420695388392":
649 Test "y1 (2.0) == -0.10703243154093754689":
654 Test "y1 (8.0) == -0.15806046173124749426":
661 Test "yn (0, 0.7) == -0.19066492933739506743":
664 Test "yn (0, 1.0) == 0.088256964215676957983":
669 Test "yn (0, 1.5) == 0.38244892379775884396":
674 Test "yn (0, 10.0) == 0.055671167283599391424":
679 Test "yn (0, 2.0) == 0.51037567264974511960":
682 Test "yn (0, 8.0) == 0.22352148938756622053":
687 Test "yn (1, 0.1) == -6.4589510947020269877":
690 Test "yn (1, 0.7) == -1.1032498719076333697":
695 Test "yn (1, 1.5) == -0.41230862697391129595":
698 Test "yn (1, 10.0) == 0.24901542420695388392":
703 Test "yn (1, 2.0) == -0.10703243154093754689":
708 Test "yn (1, 8.0) == -0.15806046173124749426":
713 Test "yn (10, 0.1) == -0.11831335132045197885e19":
716 Test "yn (10, 0.7) == -0.42447194260703866924e10":
719 Test "yn (10, 1.0) == -0.12161801427868918929e9":
722 Test "yn (10, 10.0) == -0.35981415218340272205":
725 Test "yn (10, 2.0) == -129184.54220803928264":
730 Test "yn (3, 0.7) == -15.819479052819633505":
735 Test "yn (3, 10.0) == -0.25136265718383732978":
740 Test "yn (3, 2.0) == -1.1277837768404277861":
744 # Maximal error of functions:
761 Function: Real part of "cacos":
767 Function: Imaginary part of "cacos":
771 Function: Real part of "cacosh":
777 Function: Imaginary part of "cacosh":
783 Function: Real part of "casin":
789 Function: Imaginary part of "casin":
793 Function: Real part of "casinh":
799 Function: Imaginary part of "casinh":
805 Function: Real part of "catan":
809 Function: Imaginary part of "catan":
815 Function: Real part of "catanh":
819 Function: Imaginary part of "catanh":
829 Function: Real part of "ccos":
833 Function: Imaginary part of "ccos":
839 Function: Real part of "ccosh":
845 Function: Imaginary part of "ccosh":
851 Function: Real part of "cexp":
857 Function: Imaginary part of "cexp":
861 Function: Imaginary part of "clog":
867 Function: Real part of "clog10":
873 Function: Imaginary part of "clog10":
885 Function: Real part of "cpow":
891 Function: Imaginary part of "cpow":
897 Function: Imaginary part of "csin":
901 Function: Real part of "csinh":
905 Function: Imaginary part of "csinh":
911 Function: Real part of "csqrt":
917 Function: Imaginary part of "csqrt":
921 Function: Real part of "ctan":
927 Function: Imaginary part of "ctan":
933 Function: Real part of "ctanh":
939 Function: Imaginary part of "ctanh":
1067 # end of automatic generation