check_isinfn ("real(cexp(+inf + 4.0i)) = -0", __real__ result); check_isinfn ("imag(cexp(+inf + 4.0i)) = -0", __imag__ result);
check_isinfn ("real(cexp(+inf + 4.0i)) = -inf", __real__ result); check_isinfn ("imag(cexp(+inf + 4.0i)) = -inf", __imag__ result);
cexp_test (void){  __complex__ MATHTYPE result;  result = FUNC(cexp) (BUILD_COMPLEX (plus_zero, plus_zero));  check ("real(cexp(0 + 0i)) = 1", __real__ result, 1);  check ("imag(cexp(0 + 0i)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (minus_zero, plus_zero));  check ("real(cexp(-0 + 0i)) = 1", __real__ result, 1);  check ("imag(cexp(-0 + 0i)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (plus_zero, minus_zero));  check ("real(cexp(0 - 0i)) = 1", __real__ result, 1);  check ("imag(cexp(0 - 0i)) = -0", __imag__ result, minus_zero);  result = FUNC(cexp) (BUILD_COMPLEX (minus_zero, minus_zero));  check ("real(cexp(-0 - 0i)) = 1", __real__ result, 1);  check ("imag(cexp(-0 - 0i)) = -0", __imag__ result, minus_zero);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, plus_zero));  check_isinfp ("real(cexp(+inf + 0i)) = +inf", __real__ result);  check ("imag(cexp(+inf + 0i)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, minus_zero));  check_isinfp ("real(cexp(+inf - 0i)) = +inf", __real__ result);  check ("imag(cexp(+inf - 0i)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, plus_zero));  check ("real(cexp(-inf + 0i)) = 0", __real__ result, 0);  check ("imag(cexp(-inf + 0i)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, minus_zero));  check ("real(cexp(-inf - 0i)) = 0", __real__ result, 0);  check ("imag(cexp(-inf - 0i)) = -0", __imag__ result, minus_zero);  result = FUNC(cexp) (BUILD_COMPLEX (100.0, plus_infty));  check_isnan ("real(cexp(x + i inf)) = NaN", __real__ result);  check_isnan ("imag(cexp(x + i inf)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (100.0, minus_infty));  check_isnan ("real(cexp(x - i inf)) = NaN", __real__ result);  check_isnan ("imag(cexp(x - i inf)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, 2.0));  check ("real(cexp(-inf + 2.0i)) = -0", __real__ result, minus_zero);  check ("imag(cexp(-inf + 2.0i)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, 4.0));  check ("real(cexp(-inf + 4.0i)) = -0", __real__ result, minus_zero);  check ("imag(cexp(-inf + 4.0i)) = -0", __imag__ result, minus_zero);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, 2.0));  check_isinfn ("real(cexp(+inf + 2.0i)) = -0", __real__ result);  check_isinfp ("imag(cexp(+inf + 2.0i)) = 0", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, 4.0));  check_isinfn ("real(cexp(+inf + 4.0i)) = -0", __real__ result);  check_isinfn ("imag(cexp(+inf + 4.0i)) = -0", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, plus_infty));  check_isinfp ("real(cexp(+inf + i inf)) = +inf", __real__ result);  check_isnan ("imag(cexp(+inf + i inf)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, minus_infty));  check_isinfp ("real(cexp(+inf - i inf)) = +inf", __real__ result);  check_isnan ("imag(cexp(+inf - i inf)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, plus_infty));  check ("real(cexp(-inf + i inf)) = 0", __real__ result, 0);  check ("imag(cexp(-inf + i inf)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, minus_infty));  check ("real(cexp(-inf - i inf)) = 0", __real__ result, 0);  check ("imag(cexp(-inf - i inf)) = 0", __imag__ result, 0);  result = FUNC(cexp) (BUILD_COMPLEX (minus_infty, nan_value));  check ("real(cexp(-inf + i NaN)) = 0", __real__ result, 0);  check ("imag(cexp(-inf + i NaN)) = 0", fabs (__imag__ result), 0);  result = FUNC(cexp) (BUILD_COMPLEX (plus_infty, nan_value));  check_isinfp ("real(cexp(+inf + i NaN)) = +inf", __real__ result);  check_isnan ("imag(cexp(+inf + i NaN)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (nan_value, 1.0));  check_isnan ("real(cexp(NaN + 1i)) = NaN", __real__ result);  check_isnan ("imag(cexp(NaN + 1i)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (nan_value, 1.0));  check_isnan ("real(cexp(NaN + i inf)) = NaN", __real__ result);  check_isnan ("imag(cexp(NaN + i inf)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (nan_value, 1.0));  check_isnan ("real(cexp(NaN + i NaN)) = NaN", __real__ result);  check_isnan ("imag(cexp(NaN + i NaN)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (0, nan_value));  check_isnan ("real(cexp(0 + i NaN)) = NaN", __real__ result);  check_isnan ("imag(cexp(0 + i NaN)) = NaN", __imag__ result);  result = FUNC(cexp) (BUILD_COMPLEX (1, nan_value));  check_isnan ("real(cexp(1 + i NaN)) = NaN", __real__ result);  check_isnan ("imag(cexp(1 + i NaN)) = NaN", __imag__ result);}