Lines Matching refs:result
48 bool result = true; in check_complex() local
57 result = false; in check_complex()
65 return result; in check_complex()
92 result = false; in check_complex()
95 return result; in check_complex()
135 std::complex<T> val(x, y), inter, result; in test_inverse_trig() local
137 result = cos(inter); in test_inverse_trig()
138 if(!check_complex(val, result, 50)) in test_inverse_trig()
143 std::cout << " cos(acos(val)) = " << result << std::endl; in test_inverse_trig()
147 result = sin(inter); in test_inverse_trig()
148 if(!check_complex(val, result, 5)) in test_inverse_trig()
153 std::cout << " sin(asin(val)) = " << result << std::endl; in test_inverse_trig()
164 std::complex<T> val(x, y), inter, result; in test_inverse_trig() local
166 result = sinh(inter); in test_inverse_trig()
167 if(!check_complex(val, result, 5)) in test_inverse_trig()
172 std::cout << " sinh(asinh(val)) = " << result << std::endl; in test_inverse_trig()
178 result = cosh(inter); in test_inverse_trig()
179 if(!check_complex(val, result, 60)) in test_inverse_trig()
184 std::cout << " cosh(acosh(val)) = " << result << std::endl; in test_inverse_trig()
205 result = boost::math::atanh(inter); in test_inverse_trig()
206 if(!check_complex(val, result, tanh_error)) in test_inverse_trig()
211 std::cout << " atanh(tanh(val)) = " << result << std::endl; in test_inverse_trig()
219 result = boost::math::atan(inter); in test_inverse_trig()
220 if(!check_complex(val, result, tanh_error)) in test_inverse_trig()
225 std::cout << " atan(tan(val)) = " << result << std::endl; in test_inverse_trig()
233 result = tanh(inter); in test_inverse_trig()
234 if(!check_complex(val, result, tanh_error)) in test_inverse_trig()
239 std::cout << " tanh(atanh(val)) = " << result << std::endl; in test_inverse_trig()
245 result = tan(inter); in test_inverse_trig()
246 if(!check_complex(val, result, tanh_error)) in test_inverse_trig()
251 std::cout << " tan(atan(val)) = " << result << std::endl; in test_inverse_trig()
268 ct result; in check_spots() local
298 result = boost::math::acos(ct(zero)); in check_spots()
299 check_complex(ct(half_pi), result, 2); in check_spots()
301 result = boost::math::acos(ct(mzero)); in check_spots()
302 check_complex(ct(half_pi), result, 2); in check_spots()
304 result = boost::math::acos(ct(zero, mzero)); in check_spots()
305 check_complex(ct(half_pi), result, 2); in check_spots()
307 result = boost::math::acos(ct(mzero, mzero)); in check_spots()
308 check_complex(ct(half_pi), result, 2); in check_spots()
312 result = boost::math::acos(ct(zero,nan)); in check_spots()
313 BOOST_CHECK_CLOSE(result.real(), half_pi, eps*200); in check_spots()
314 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
316 result = boost::math::acos(ct(mzero,nan)); in check_spots()
317 BOOST_CHECK_CLOSE(result.real(), half_pi, eps*200); in check_spots()
318 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
322 result = boost::math::acos(ct(zero, infinity)); in check_spots()
323 BOOST_CHECK_CLOSE(result.real(), half_pi, eps*200); in check_spots()
324 BOOST_CHECK(result.imag() == -infinity); in check_spots()
326 result = boost::math::acos(ct(zero, -infinity)); in check_spots()
327 BOOST_CHECK_CLOSE(result.real(), half_pi, eps*200); in check_spots()
328 BOOST_CHECK(result.imag() == infinity); in check_spots()
333 result = boost::math::acos(ct(one, nan)); in check_spots()
334 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
335 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
339 result = boost::math::acos(ct(-infinity, one)); in check_spots()
340 BOOST_CHECK_CLOSE(result.real(), pi, eps*200); in check_spots()
341 BOOST_CHECK(result.imag() == -infinity); in check_spots()
343 result = boost::math::acos(ct(infinity, one)); in check_spots()
344 BOOST_CHECK(result.real() == 0); in check_spots()
345 BOOST_CHECK(result.imag() == -infinity); in check_spots()
347 result = boost::math::acos(ct(-infinity, -one)); in check_spots()
348 BOOST_CHECK_CLOSE(result.real(), pi, eps*200); in check_spots()
349 BOOST_CHECK(result.imag() == infinity); in check_spots()
351 result = boost::math::acos(ct(infinity, -one)); in check_spots()
352 BOOST_CHECK(result.real() == 0); in check_spots()
353 BOOST_CHECK(result.imag() == infinity); in check_spots()
355 result = boost::math::acos(ct(-infinity, infinity)); in check_spots()
356 BOOST_CHECK_CLOSE(result.real(), three_quarter_pi, eps*200); in check_spots()
357 BOOST_CHECK(result.imag() == -infinity); in check_spots()
359 result = boost::math::acos(ct(infinity, infinity)); in check_spots()
360 BOOST_CHECK_CLOSE(result.real(), quarter_pi, eps*200); in check_spots()
361 BOOST_CHECK(result.imag() == -infinity); in check_spots()
363 result = boost::math::acos(ct(-infinity, -infinity)); in check_spots()
364 BOOST_CHECK_CLOSE(result.real(), three_quarter_pi, eps*200); in check_spots()
365 BOOST_CHECK(result.imag() == infinity); in check_spots()
367 result = boost::math::acos(ct(infinity, -infinity)); in check_spots()
368 BOOST_CHECK_CLOSE(result.real(), quarter_pi, eps*200); in check_spots()
369 BOOST_CHECK(result.imag() == infinity); in check_spots()
373 result = boost::math::acos(ct(infinity, nan)); in check_spots()
374 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
375 BOOST_CHECK(std::fabs(result.imag()) == infinity); in check_spots()
377 result = boost::math::acos(ct(-infinity, nan)); in check_spots()
378 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
379 BOOST_CHECK(std::fabs(result.imag()) == infinity); in check_spots()
381 result = boost::math::acos(ct(nan, zero)); in check_spots()
382 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
383 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
385 result = boost::math::acos(ct(nan, -zero)); in check_spots()
386 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
387 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
389 result = boost::math::acos(ct(nan, one)); in check_spots()
390 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
391 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
393 result = boost::math::acos(ct(nan, -one)); in check_spots()
394 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
395 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
397 result = boost::math::acos(ct(nan, nan)); in check_spots()
398 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
399 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
401 result = boost::math::acos(ct(nan, infinity)); in check_spots()
402 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
403 BOOST_CHECK(result.imag() == -infinity); in check_spots()
405 result = boost::math::acos(ct(nan, -infinity)); in check_spots()
406 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
407 BOOST_CHECK(result.imag() == infinity); in check_spots()
411 result = boost::math::acos(ct(-1.25f, zero)); in check_spots()
412 BOOST_CHECK(result.real() > 0); in check_spots()
413 BOOST_CHECK(result.imag() < 0); in check_spots()
414 result = boost::math::asin(ct(-1.75f, mzero)); in check_spots()
415 BOOST_CHECK(result.real() < 0); in check_spots()
416 BOOST_CHECK(result.imag() < 0); in check_spots()
417 result = boost::math::atan(ct(mzero, -1.75f)); in check_spots()
418 BOOST_CHECK(result.real() < 0); in check_spots()
419 BOOST_CHECK(result.imag() < 0); in check_spots()
421 result = boost::math::acos(ct(zero, zero)); in check_spots()
422 BOOST_CHECK(result.real() > 0); in check_spots()
423 BOOST_CHECK(result.imag() == 0); in check_spots()
424 BOOST_CHECK((boost::math::signbit)(result.imag())); in check_spots()
425 result = boost::math::acos(ct(zero, mzero)); in check_spots()
426 BOOST_CHECK(result.real() > 0); in check_spots()
427 BOOST_CHECK(result.imag() == 0); in check_spots()
428 BOOST_CHECK(0 == (boost::math::signbit)(result.imag())); in check_spots()
429 result = boost::math::acos(ct(mzero, zero)); in check_spots()
430 BOOST_CHECK(result.real() > 0); in check_spots()
431 BOOST_CHECK(result.imag() == 0); in check_spots()
432 BOOST_CHECK((boost::math::signbit)(result.imag())); in check_spots()
433 result = boost::math::acos(ct(mzero, mzero)); in check_spots()
434 BOOST_CHECK(result.real() > 0); in check_spots()
435 BOOST_CHECK(result.imag() == 0); in check_spots()
436 BOOST_CHECK(0 == (boost::math::signbit)(result.imag())); in check_spots()
442 result = boost::math::acosh(ct(zero, zero)); in check_spots()
443 BOOST_CHECK(result.real() == 0); in check_spots()
444 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
446 result = boost::math::acosh(ct(zero, mzero)); in check_spots()
447 BOOST_CHECK(result.real() == 0); in check_spots()
448 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
450 result = boost::math::acosh(ct(mzero, zero)); in check_spots()
451 BOOST_CHECK(result.real() == 0); in check_spots()
452 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
454 result = boost::math::acosh(ct(mzero, mzero)); in check_spots()
455 BOOST_CHECK(result.real() == 0); in check_spots()
456 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
460 result = boost::math::acosh(ct(one, infinity)); in check_spots()
461 BOOST_CHECK(result.real() == infinity); in check_spots()
462 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
464 result = boost::math::acosh(ct(one, -infinity)); in check_spots()
465 BOOST_CHECK(result.real() == infinity); in check_spots()
466 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
471 result = boost::math::acosh(ct(one, nan)); in check_spots()
472 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
473 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
477 result = boost::math::acosh(ct(-infinity, one)); in check_spots()
478 BOOST_CHECK(result.real() == infinity); in check_spots()
479 BOOST_CHECK_CLOSE(result.imag(), pi, eps*200); in check_spots()
481 result = boost::math::acosh(ct(infinity, one)); in check_spots()
482 BOOST_CHECK(result.real() == infinity); in check_spots()
483 BOOST_CHECK(result.imag() == 0); in check_spots()
485 result = boost::math::acosh(ct(-infinity, -one)); in check_spots()
486 BOOST_CHECK(result.real() == infinity); in check_spots()
487 BOOST_CHECK_CLOSE(result.imag(), -pi, eps*200); in check_spots()
489 result = boost::math::acosh(ct(infinity, -one)); in check_spots()
490 BOOST_CHECK(result.real() == infinity); in check_spots()
491 BOOST_CHECK(result.imag() == 0); in check_spots()
493 result = boost::math::acosh(ct(-infinity, infinity)); in check_spots()
494 BOOST_CHECK(result.real() == infinity); in check_spots()
495 BOOST_CHECK_CLOSE(result.imag(), three_quarter_pi, eps*200); in check_spots()
497 result = boost::math::acosh(ct(infinity, infinity)); in check_spots()
498 BOOST_CHECK(result.real() == infinity); in check_spots()
499 BOOST_CHECK_CLOSE(result.imag(), quarter_pi, eps*200); in check_spots()
501 result = boost::math::acosh(ct(-infinity, -infinity)); in check_spots()
502 BOOST_CHECK(result.real() == infinity); in check_spots()
503 BOOST_CHECK_CLOSE(result.imag(), -three_quarter_pi, eps*200); in check_spots()
505 result = boost::math::acosh(ct(infinity, -infinity)); in check_spots()
506 BOOST_CHECK(result.real() == infinity); in check_spots()
507 BOOST_CHECK_CLOSE(result.imag(), -quarter_pi, eps*200); in check_spots()
512 result = boost::math::acosh(ct(infinity, nan)); in check_spots()
513 BOOST_CHECK(result.real() == infinity); in check_spots()
514 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
516 result = boost::math::acosh(ct(-infinity, nan)); in check_spots()
517 BOOST_CHECK(result.real() == infinity); in check_spots()
518 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
520 result = boost::math::acosh(ct(nan, one)); in check_spots()
521 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
522 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
524 result = boost::math::acosh(ct(nan, infinity)); in check_spots()
525 BOOST_CHECK(result.real() == infinity); in check_spots()
526 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
528 result = boost::math::acosh(ct(nan, -one)); in check_spots()
529 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
530 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
532 result = boost::math::acosh(ct(nan, -infinity)); in check_spots()
533 BOOST_CHECK(result.real() == infinity); in check_spots()
534 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
536 result = boost::math::acosh(ct(nan, nan)); in check_spots()
537 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
538 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
542 result = boost::math::acosh(ct(-2.5f, zero)); in check_spots()
543 BOOST_CHECK(result.real() > 0); in check_spots()
544 BOOST_CHECK(result.imag() > 0); in check_spots()
549 result = boost::math::asinh(ct(zero, zero)); in check_spots()
550 BOOST_CHECK(result.real() == 0); in check_spots()
551 BOOST_CHECK(result.imag() == 0); in check_spots()
553 result = boost::math::asinh(ct(mzero, zero)); in check_spots()
554 BOOST_CHECK(result.real() == 0); in check_spots()
555 BOOST_CHECK(result.imag() == 0); in check_spots()
557 result = boost::math::asinh(ct(zero, mzero)); in check_spots()
558 BOOST_CHECK(result.real() == 0); in check_spots()
559 BOOST_CHECK(result.imag() == 0); in check_spots()
561 result = boost::math::asinh(ct(mzero, mzero)); in check_spots()
562 BOOST_CHECK(result.real() == 0); in check_spots()
563 BOOST_CHECK(result.imag() == 0); in check_spots()
567 result = boost::math::asinh(ct(one, infinity)); in check_spots()
568 BOOST_CHECK(result.real() == infinity); in check_spots()
569 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
571 result = boost::math::asinh(ct(one, -infinity)); in check_spots()
572 BOOST_CHECK(result.real() == infinity); in check_spots()
573 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
575 result = boost::math::asinh(ct(-one, -infinity)); in check_spots()
576 BOOST_CHECK(result.real() == -infinity); in check_spots()
577 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
579 result = boost::math::asinh(ct(-one, infinity)); in check_spots()
580 BOOST_CHECK(result.real() == -infinity); in check_spots()
581 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
586 result = boost::math::asinh(ct(one, nan)); in check_spots()
587 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
588 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
590 result = boost::math::asinh(ct(-one, nan)); in check_spots()
591 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
592 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
594 result = boost::math::asinh(ct(zero, nan)); in check_spots()
595 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
596 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
601 result = boost::math::asinh(ct(infinity, one)); in check_spots()
602 BOOST_CHECK(result.real() == infinity); in check_spots()
603 BOOST_CHECK(result.imag() == 0); in check_spots()
605 result = boost::math::asinh(ct(infinity, -one)); in check_spots()
606 BOOST_CHECK(result.real() == infinity); in check_spots()
607 BOOST_CHECK(result.imag() == 0); in check_spots()
609 result = boost::math::asinh(ct(-infinity, -one)); in check_spots()
610 BOOST_CHECK(result.real() == -infinity); in check_spots()
611 BOOST_CHECK(result.imag() == 0); in check_spots()
613 result = boost::math::asinh(ct(-infinity, one)); in check_spots()
614 BOOST_CHECK(result.real() == -infinity); in check_spots()
615 BOOST_CHECK(result.imag() == 0); in check_spots()
617 result = boost::math::asinh(ct(infinity, infinity)); in check_spots()
618 BOOST_CHECK(result.real() == infinity); in check_spots()
619 BOOST_CHECK_CLOSE(result.imag(), quarter_pi, eps*200); in check_spots()
621 result = boost::math::asinh(ct(infinity, -infinity)); in check_spots()
622 BOOST_CHECK(result.real() == infinity); in check_spots()
623 BOOST_CHECK_CLOSE(result.imag(), -quarter_pi, eps*200); in check_spots()
625 result = boost::math::asinh(ct(-infinity, -infinity)); in check_spots()
626 BOOST_CHECK(result.real() == -infinity); in check_spots()
627 BOOST_CHECK_CLOSE(result.imag(), -quarter_pi, eps*200); in check_spots()
629 result = boost::math::asinh(ct(-infinity, infinity)); in check_spots()
630 BOOST_CHECK(result.real() == -infinity); in check_spots()
631 BOOST_CHECK_CLOSE(result.imag(), quarter_pi, eps*200); in check_spots()
636 result = boost::math::asinh(ct(infinity, nan)); in check_spots()
637 BOOST_CHECK(result.real() == infinity); in check_spots()
638 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
640 result = boost::math::asinh(ct(-infinity, nan)); in check_spots()
641 BOOST_CHECK(result.real() == -infinity); in check_spots()
642 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
644 result = boost::math::asinh(ct(nan, zero)); in check_spots()
645 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
646 BOOST_CHECK(result.imag() == 0); in check_spots()
648 result = boost::math::asinh(ct(nan, mzero)); in check_spots()
649 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
650 BOOST_CHECK(result.imag() == 0); in check_spots()
652 result = boost::math::asinh(ct(nan, one)); in check_spots()
653 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
654 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
656 result = boost::math::asinh(ct(nan, -one)); in check_spots()
657 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
658 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
660 result = boost::math::asinh(ct(nan, nan)); in check_spots()
661 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
662 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
664 result = boost::math::asinh(ct(nan, infinity)); in check_spots()
665 BOOST_CHECK(std::fabs(result.real()) == infinity); in check_spots()
666 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
668 result = boost::math::asinh(ct(nan, -infinity)); in check_spots()
669 BOOST_CHECK(std::fabs(result.real()) == infinity); in check_spots()
670 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
674 result = boost::math::asinh(ct(zero, 1.5f)); in check_spots()
675 BOOST_CHECK(result.real() > 0); in check_spots()
676 BOOST_CHECK(result.imag() > 0); in check_spots()
682 result = boost::math::atanh(ct(zero, zero)); in check_spots()
683 BOOST_CHECK(result.real() == zero); in check_spots()
684 BOOST_CHECK(result.imag() == zero); in check_spots()
686 result = boost::math::atanh(ct(mzero, zero)); in check_spots()
687 BOOST_CHECK(result.real() == zero); in check_spots()
688 BOOST_CHECK(result.imag() == zero); in check_spots()
690 result = boost::math::atanh(ct(zero, mzero)); in check_spots()
691 BOOST_CHECK(result.real() == zero); in check_spots()
692 BOOST_CHECK(result.imag() == zero); in check_spots()
694 result = boost::math::atanh(ct(mzero, mzero)); in check_spots()
695 BOOST_CHECK(result.real() == zero); in check_spots()
696 BOOST_CHECK(result.imag() == zero); in check_spots()
700 result = boost::math::atanh(ct(zero, nan)); in check_spots()
701 BOOST_CHECK(result.real() == zero); in check_spots()
702 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
704 result = boost::math::atanh(ct(-zero, nan)); in check_spots()
705 BOOST_CHECK(result.real() == zero); in check_spots()
706 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
711 result = boost::math::atanh(ct(one, zero)); in check_spots()
712 BOOST_CHECK_EQUAL(result.real(), infinity); in check_spots()
713 BOOST_CHECK_EQUAL(result.imag(), zero); in check_spots()
715 result = boost::math::atanh(ct(-one, zero)); in check_spots()
716 BOOST_CHECK_EQUAL(result.real(), -infinity); in check_spots()
717 BOOST_CHECK_EQUAL(result.imag(), zero); in check_spots()
719 result = boost::math::atanh(ct(-one, -zero)); in check_spots()
720 BOOST_CHECK_EQUAL(result.real(), -infinity); in check_spots()
721 BOOST_CHECK_EQUAL(result.imag(), zero); in check_spots()
723 result = boost::math::atanh(ct(one, -zero)); in check_spots()
724 BOOST_CHECK_EQUAL(result.real(), infinity); in check_spots()
725 BOOST_CHECK_EQUAL(result.imag(), zero); in check_spots()
727 result = boost::math::atanh(ct(pi, infinity)); in check_spots()
728 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
729 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
731 result = boost::math::atanh(ct(pi, -infinity)); in check_spots()
732 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
733 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
735 result = boost::math::atanh(ct(-pi, -infinity)); in check_spots()
736 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
737 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
739 result = boost::math::atanh(ct(-pi, infinity)); in check_spots()
740 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
741 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
745 result = boost::math::atanh(ct(pi, nan)); in check_spots()
746 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
747 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
749 result = boost::math::atanh(ct(-pi, nan)); in check_spots()
750 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
751 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
756 result = boost::math::atanh(ct(infinity, pi)); in check_spots()
757 BOOST_CHECK(result.real() == zero); in check_spots()
758 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
760 result = boost::math::atanh(ct(infinity, -pi)); in check_spots()
761 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
762 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
764 result = boost::math::atanh(ct(-infinity, -pi)); in check_spots()
765 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
766 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
768 result = boost::math::atanh(ct(-infinity, pi)); in check_spots()
769 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
770 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
772 result = boost::math::atanh(ct(infinity, infinity)); in check_spots()
773 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
774 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
776 result = boost::math::atanh(ct(infinity, -infinity)); in check_spots()
777 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
778 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
780 result = boost::math::atanh(ct(-infinity, -infinity)); in check_spots()
781 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
782 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
784 result = boost::math::atanh(ct(-infinity, infinity)); in check_spots()
785 BOOST_CHECK_EQUAL(result.real(), zero); in check_spots()
786 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
791 result = boost::math::atanh(ct(infinity, nan)); in check_spots()
792 BOOST_CHECK(result.real() == 0); in check_spots()
793 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
795 result = boost::math::atanh(ct(-infinity, nan)); in check_spots()
796 BOOST_CHECK(result.real() == 0); in check_spots()
797 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
799 result = boost::math::atanh(ct(nan, pi)); in check_spots()
800 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
801 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
803 result = boost::math::atanh(ct(nan, -pi)); in check_spots()
804 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
805 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
807 result = boost::math::atanh(ct(nan, infinity)); in check_spots()
808 BOOST_CHECK(result.real() == 0); in check_spots()
809 BOOST_CHECK_CLOSE(result.imag(), half_pi, eps*200); in check_spots()
811 result = boost::math::atanh(ct(nan, -infinity)); in check_spots()
812 BOOST_CHECK(result.real() == 0); in check_spots()
813 BOOST_CHECK_CLOSE(result.imag(), -half_pi, eps*200); in check_spots()
815 result = boost::math::atanh(ct(nan, nan)); in check_spots()
816 BOOST_CHECK((boost::math::isnan)(result.real())); in check_spots()
817 BOOST_CHECK((boost::math::isnan)(result.imag())); in check_spots()
822 result = boost::math::atanh(ct(-2.0f, mzero)); in check_spots()
823 BOOST_CHECK(result.real() < 0); in check_spots()
824 BOOST_CHECK(result.imag() < 0); in check_spots()