Beispiel #1
0
int
main(int argc, char *argv[])
{

	printf("1..7\n");

	test_zero();
	printf("ok 1 - cexp zero\n");

	test_nan();
	printf("ok 2 - cexp nan\n");

	test_inf();
	printf("ok 3 - cexp inf\n");

#if defined(__i386__)
	printf("not ok 4 - cexp reals # TODO: PR # 191676 fails assertion on i386\n");
#else
	test_reals();
	printf("ok 4 - cexp reals\n");
#endif

	test_imaginaries();
	printf("ok 5 - cexp imaginaries\n");

	test_small();
	printf("ok 6 - cexp small\n");

	test_large();
	printf("ok 7 - cexp large\n");

	return (0);
}
Beispiel #2
0
int
main(int argc, char *argv[])
{

	printf("1..6\n");

	test_zero();
	printf("ok 1 - ctrig zero\n");

	test_nan();
	printf("ok 2 - ctrig nan\n");

	test_inf();
	printf("ok 3 - ctrig inf\n");

	test_axes();
	printf("ok 4 - ctrig axes\n");

	test_small();
	printf("ok 5 - ctrig small\n");

	test_large();
	printf("ok 6 - ctrig large\n");

	return (0);
}
Beispiel #3
0
int
main(int argc, char *argv[])
{

	printf("1..7\n");

	test_zero();
	printf("ok 1 - cexp zero\n");

	test_nan();
	printf("ok 2 - cexp nan\n");

	test_inf();
	printf("ok 3 - cexp inf\n");

	test_reals();
	printf("ok 4 - cexp reals\n");

	test_imaginaries();
	printf("ok 5 - cexp imaginaries\n");

	test_small();
	printf("ok 6 - cexp small\n");

	test_large();
	printf("ok 7 - cexp large\n");

	return (0);
}
Beispiel #4
0
TEST(AgradRev,lgamma_NaN) {
  lgamma_fun lgamma_;
  test_nan(lgamma_,false,true);
}
TEST(AgradRev,modified_bessel_first_kind_NaN) {
  modified_bessel_first_kind_fun modified_bessel_first_kind_;
  test_nan(modified_bessel_first_kind_,true,false);
}
Beispiel #6
0
TEST(AgradRev,cbrt_NaN) {
  cbrt_fun cbrt_;
  test_nan(cbrt_,false,true);
}
Beispiel #7
0
TEST(AgradRev, gamma_p_nan) {
  gamma_p_fun gamma_p_;
  test_nan(gamma_p_,0.5,1.0,false,true);
}
Beispiel #8
0
TEST(AgradRev,sinh_NaN) {
  sinh_fun sinh_;
  test_nan(sinh_,false,true);
}
Beispiel #9
0
TEST(AgradRev,log1p_NaN) {
  log1p_fun log1p_;
  test_nan(log1p_,false,true);
}
Beispiel #10
0
TEST(AgradRev,expm1_NaN) {
  expm1_fun expm1_;
  test_nan(expm1_,false,true);
}
Beispiel #11
0
TEST(AgradRev,abs_NaN) {
  abs_fun abs_;
  test_nan(abs_,false,true);
}
TEST(AgradRev, log_falling_factorial_nan) {
  log_falling_factorial_fun log_falling_factorial_;
  test_nan(log_falling_factorial_,4.0,4.0,false,true);
}
Beispiel #13
0
TEST(AgradRev,erfc_NaN) {
  erfc_fun erfc_;
  test_nan(erfc_,false,true);
}
Beispiel #14
0
TEST(AgradRev, gamma_q_nan) {
  gamma_q_fun gamma_q_;
  test_nan(gamma_q_,3.0,5.0,false,true);
}
Beispiel #15
0
 static bool call(boost::math::concepts::real_concept n)
 {
     return test_nan(n.value());
 }
TEST(AgradRev,bessel_second_kind_NaN) {
  bessel_second_kind_fun bessel_second_kind_;
  test_nan(bessel_second_kind_,false,true);
}
Beispiel #17
0
TEST(AgradRev,inv_square_NaN) {
    inv_square_fun inv_square_;
    test_nan(inv_square_,false,true);
}
Beispiel #18
0
TEST(AgradRev,fabs_NaN) {
  fabs_fun fabs_;
  test_nan(fabs_,false,true);
}
TEST(AgradRev,bessel_first_kind_NaN) {
  bessel_first_kind_fun bessel_first_kind_;
  test_nan(bessel_first_kind_,true,false);
}
Beispiel #20
0
TEST(AgradRev, fmod_nan) {
  fmod_fun fmod_;
  test_nan(fmod_,3.0,5.0,false, true);
}
TEST(AgradRev, falling_factorial_nan) {
  falling_factorial_fun falling_factorial_;
  test_nan(falling_factorial_,4.0,1.0,false,true);

}
TEST(AgradRev, pos_nan) {
  pos_fun pos_;

  test_nan(pos_,false, true);
}
Beispiel #23
0
int main()
{
    test_acos();
    test_asin();
    test_atan();
    test_atan2();
    test_ceil();
    test_cos();
    test_cosh();
    test_exp();
    test_fabs();
    test_floor();
    test_fmod();
    test_frexp();
    test_ldexp();
    test_log();
    test_log10();
    test_modf();
    test_pow();
    test_sin();
    test_sinh();
    test_sqrt();
    test_tan();
    test_tanh();
    test_signbit();
    test_fpclassify();
    test_isfinite();
    test_isinf();
    test_isnan();
    test_isnormal();
    test_isgreater();
    test_isgreaterequal();
    test_isless();
    test_islessequal();
    test_islessgreater();
    test_isunordered();
    test_acosh();
    test_asinh();
    test_atanh();
    test_cbrt();
    test_copysign();
    test_erf();
    test_erfc();
    test_exp2();
    test_expm1();
    test_fdim();
    test_fma();
    test_fmax();
    test_fmin();
    test_hypot();
    test_ilogb();
    test_lgamma();
    test_llrint();
    test_llround();
    test_log1p();
    test_log2();
    test_logb();
    test_lrint();
    test_lround();
    test_nan();
    test_nearbyint();
    test_nextafter();
    test_nexttoward();
    test_remainder();
    test_remquo();
    test_rint();
    test_round();
    test_scalbln();
    test_scalbn();
    test_tgamma();
    test_trunc();
}
Beispiel #24
0
TEST(AgradRev, hypot_nan) {
  hypot_fun hypot_;
  test_nan(hypot_,3.0,5.0,false, true);
}
Beispiel #25
0
TEST(AgradRev,exp2_NaN) {
  exp2_fun exp2_;
  test_nan(exp2_,false,true);
}
 static bool 
 call(fusion::extension::adt_attribute_proxy<T, N, Const> const& val) 
 { 
     return test_nan(val.get()); 
 }
Beispiel #27
0
TEST(AgradRev,asinh_NaN) {
  asinh_fun asinh_;
  test_nan(asinh_,false,true);
}
TEST(AgradRev,modified_bessel_second_kind_NaN) {
  modified_bessel_second_kind_fun modified_bessel_second_kind_;
  test_nan(modified_bessel_second_kind_,false,true);
}
Beispiel #29
0
TEST(AgradRev,tgamma_NaN) {
  tgamma_fun tgamma_;
  test_nan(tgamma_,false,true);
}