Home
last modified time | relevance | path

Searched refs:erf (Results 1 – 25 of 4165) sorted by relevance

12345678910>>...167

/dports/devel/gcem/gcem-1.13.1/tests/
H A Derf.cpp32 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, -3.0L); in main()
33 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, -2.5L); in main()
34 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, -2.11L); in main()
35 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, -2.05L); in main()
36 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, -1.3L); in main()
37 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, 0.0L); in main()
38 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, 1.3L); in main()
39 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, 2.05L); in main()
40 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, 2.11L); in main()
41 GCEM_TEST_COMPARE_VALS(gcem::erf, std::erf, 2.5L); in main()
[all …]
/dports/math/scilab/scilab-6.1.1/scilab/modules/special_functions/tests/unit_tests/
H A Derf.dia.ref9 //reference Yr=erf(X) generee par Maple
12 //pm[k]:=evalf[24](erf(x)):
1018 y=erf(Xr);
1028 assert_checkalmostequal(erf(-3001 + -1000*%i), -1 + 0*%i, 1.e-10);
1029 assert_checkalmostequal(erf(1e160 + -1e159*%i), 1 + 0*%i, 1.e-10);
1043 assert_checkalmostequal(erf(%inf + 0*%i), 1 + 0*%i, 1.e-10);
1044 assert_checkalmostequal(erf(-%inf + 0*%i), -1 + 0*%i, 1.e-10);
1050 assert_checkalmostequal(erf(%nan + 0*%i), %nan + 0*%i, 1.e-10);
1051 assert_checkalmostequal(erf(0 + %nan*%i), 0 + %nan*%i, 1.e-10);
1062 assert_checkerror("erf(''foo'')",[],999);
[all …]
H A Derf.tst12 //reference Yr=erf(X) generee par Maple
15 //pm[k]:=evalf[24](erf(x)):
1025 y=erf(Xr);
1037 assert_checkalmostequal(erf(-3001 + -1000*%i), -1 + 0*%i, 1.e-10);
1038 assert_checkalmostequal(erf(1e160 + -1e159*%i), 1 + 0*%i, 1.e-10);
1052 assert_checkalmostequal(erf(%inf + 0*%i), 1 + 0*%i, 1.e-10);
1053 assert_checkalmostequal(erf(-%inf + 0*%i), -1 + 0*%i, 1.e-10);
1059 assert_checkalmostequal(erf(%nan + 0*%i), %nan + 0*%i, 1.e-10);
1060 assert_checkalmostequal(erf(0 + %nan*%i), 0 + %nan*%i, 1.e-10);
1072 assert_checkerror("erf(''foo'')",[],999);
[all …]
/dports/math/stan/stan-2.28.2/src/test/test-models/good/function-signatures/math/matrix/
H A Derf.stan40 trans_x3y = erf(x3y);
41 trans_x4y = erf(x4y);
42 trans_x5y = erf(x5y);
43 trans_x2z = erf(x1z);
44 trans_x2z = erf(x2z);
45 trans_x3z = erf(x3z);
46 trans_x4z = erf(x4z);
47 trans_x5z = erf(x5z);
48 trans_x2w = erf(x1w);
49 trans_x2w = erf(x2w);
[all …]
/dports/audio/wavplay/wavplay-1.4/
H A Dclient.h60 extern int tosvr_cmd(MSGTYP cmd,int flags,ErrFunc erf); /* Simple server command */
61 extern int tosvr_start(ErrFunc erf); /* Start server */
62 extern int tosvr_bye(int flags,ErrFunc erf); /* Tell server to exit */
64 #define tosvr_bye(flags,erf) tosvr_cmd(ToSvr_Bye,flags,erf) /* Tell server to exit */ argument
65 #define tosvr_play(flags,erf) tosvr_cmd(ToSvr_Play,flags,erf) /* Tell server to play */ argument
66 #define tosvr_pause(flags,erf) tosvr_cmd(ToSvr_Pause,flags,erf) /* Tell server to pause */ argument
67 #define tosvr_stop(flags,erf) tosvr_cmd(ToSvr_Stop,flags,erf) /* Tell server to stop */ argument
68 #define tosvr_restore(flags,erf) tosvr_cmd(ToSvr_Restore,flags,erf) /* Tell server to restore setti… argument
69 #define tosvr_semreset(flags,erf) tosvr_cmd(ToSvr_SemReset,flags,erf) /* Tell server to reset semap… argument
74 extern int tosvr_sampling_rate(int flags,ErrFunc erf,UInt32 sampling_rate);
[all …]
H A Dclient.c129 tosvr_start(ErrFunc erf) { in tosvr_start() argument
137 v_erf = erf; /* Error reporting function */ in tosvr_start()
213 tosvr_cmd(MSGTYP cmd,int flags,ErrFunc erf) { in tosvr_cmd() argument
217 v_erf = erf; /* Error reporting function */ in tosvr_cmd()
237 v_erf = erf; /* Error reporting function */ in tosvr_path()
253 tosvr_bits(int flags,ErrFunc erf,int bits) { in tosvr_bits() argument
257 v_erf = erf; /* Error reporting function */ in tosvr_bits()
296 v_erf = erf; /* Error reporting function */ in tosvr_sampling_rate()
312 tosvr_chan(int flags,ErrFunc erf,Chan chan) { in tosvr_chan() argument
316 v_erf = erf; /* Error reporting function */ in tosvr_chan()
[all …]
/dports/math/scilab/scilab-6.1.1/scilab/modules/m2sci/tests/unit_tests/mfiles/
H A DERF.m1 % Test file for function erf()
5 res1 = erf([]);
7 res2 = erf(m2sciUnknownType([]));
9 res3 = erf(m2sciUnknownDims([]));
11 res4 = erf([1]);
13 res5 = erf([1,2,3]);
15 res6 = erf([1;2;3]);
17 res7 = erf([1,2,3;4,5,6]);
19 res8 = erf(m2sciUnknownType([1]));
21 res9 = erf(m2sciUnknownType([1,2,3]));
[all …]
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/math/
H A Derf_spec.rb8 Math.erf(1).should be_kind_of(Float)
12 Math.erf(0).should be_close(0.0, TOLERANCE)
13 Math.erf(1).should be_close(0.842700792949715, TOLERANCE)
14 Math.erf(-1).should be_close(-0.842700792949715, TOLERANCE)
15 Math.erf(0.5).should be_close(0.520499877813047, TOLERANCE)
17 Math.erf(10000).should be_close(1.0, TOLERANCE)
18 Math.erf(-10000).should be_close(-1.0, TOLERANCE)
19 Math.erf(0.00000000000001).should be_close(0.0, TOLERANCE)
24 lambda { Math.erf("test") }.should raise_error(TypeError)
28 Math.erf(nan_value).nan?.should be_true
[all …]
/dports/science/gnudatalanguage/gdl-1.0.1/testsuite/
H A Dtest_erfs.pro4 ; plot of erf and erfc functions
16 ; plot erf and erfc functions:
17 plot, x, erf(x), title = 'erf and erfc functions', xrange = [-5, 5], $
24 labels = ['erf','erfc']
35 yc = erf(x)
37 print, 'float numerical tests on erf:'
51 yc = erf(x)
54 print, 'float limits tests on erf:'
73 yc = erf(x)
91 yc = erf(x)
[all …]
/dports/math/heyoka/heyoka-0.16.0/test/
H A Dtaylor_erf.cpp119 using std::erf;
150 using std::erf;
188 using std::erf; in __anonff322b4a0202()
215 REQUIRE(jet[2] == approximately(erf(fp_t{2}))); in __anonff322b4a0202()
237 REQUIRE(jet[2] == approximately(erf(fp_t{2}))); in __anonff322b4a0202()
462 taylor_add_jet<fp_t>(s, "jet", {erf(y), erf(x)}, 1, 1, high_accuracy, compact_mode); in __anonff322b4a0202()
482 taylor_add_jet<fp_t>(s, "jet", {erf(y), erf(x)}, 1, 2, high_accuracy, compact_mode); in __anonff322b4a0202()
509 taylor_add_jet<fp_t>(s, "jet", {erf(y), erf(x)}, 2, 1, high_accuracy, compact_mode); in __anonff322b4a0202()
531 taylor_add_jet<fp_t>(s, "jet", {erf(y), erf(x)}, 2, 2, high_accuracy, compact_mode); in __anonff322b4a0202()
564 taylor_add_jet<fp_t>(s, "jet", {erf(y), erf(x)}, 3, 3, high_accuracy, compact_mode); in __anonff322b4a0202()
[all …]
H A Derf.cpp28 using std::erf;
32 stream << erf(x);
35 REQUIRE(eval<double>(erf(x), {{"x", 0.}}) == erf(0.));
36 REQUIRE(eval<double>(erf(x), {{"x", 1.}}) == erf(1.));
43 …REQUIRE(diff(erf(x * x - y), x) == (2_dbl / sqrt(pi) * exp((-(x * x - y) * (x * x - y)))) * (2. * …
44 REQUIRE(diff(erf(x * x + y), y) == (2_dbl / sqrt(pi) * exp((-(x * x + y) * (x * x + y)))));
46 REQUIRE(diff(erf(par[0] * par[0] - y), par[0])
48 …REQUIRE(diff(erf(x * x + par[1]), par[1]) == (2_dbl / sqrt(pi) * exp((-(x * x + par[1]) * (x * x +…
57 auto ex = erf(x);
73 REQUIRE(ex == erf(x));
/dports/devel/boost-docs/boost_1_72_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/devel/boost-python-libs/boost_1_72_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/databases/percona57-pam-for-mysql/boost_1_59_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/databases/mysqlwsrep57-server/boost_1_59_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/databases/percona57-server/boost_1_59_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/databases/xtrabackup/boost_1_59_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/databases/percona57-client/boost_1_59_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/devel/boost-libs/boost_1_72_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/devel/hyperscan/boost_1_75_0/libs/math/test/
H A Dtest_erf_hooks.hpp11 inline float erf(float a) in erf() function
19 inline double erf(double a) in erf() function
21 return ::erf(a); in erf()
27 inline long double erf(long double a) in erf() function
42 double erf(double);
46 inline float erf(float a) in erf() function
48 inline long double erf(long double a) in erf() function
51 return erf((double)a); in erf()
79 inline float erf(float a) in erf() function
81 inline double erf(double a) in erf() function
[all …]
/dports/math/PDL/PDL-2.019/t/
H A Derf.t16 ok( tapprox(erf(0.),0.) && tapprox(erf(30.),1.),"erf(0), erf(30)");
17 ok( tapprox(erf(0.5),1.-erfc(0.5)), "erf and erfc");
18 ok( tapprox(erf(erfi(0.5)),0.5) && tapprox(erfi(erf(0.5)),0.5), "erfi (both ways)");
22 $pa->inplace->erf;
23 ok( tapprox( $pa, pdl(0.0,1.0) ), "erf inplace" );
29 ok( tapprox( 1.0-$pa, erf(0.5) ), "erfc inplace" );
/dports/math/scilab/scilab-6.1.1/scilab/modules/elementary_functions/tests/unit_tests/
H A Derf.dia.ref10 //writeto("erf.ref"):interface(prettyprint=0):
11 //for i from 0 to 40 do print(evalf[30](erf(10^(-(200-i*5))),30)): od:
12 //for i from 2 to 1000 do print(evalf[30](erf(i/1000),30)): od:
13 //for i from 1 to 1000 do print(evalf[30](erf(i/100),30)): od:
58 e1=max(norm((y1ref-erf(x1))./abs(y1ref),1), norm((y1ref+erf(-x1))./ abs(y1ref),1));
1060 y2=erf(x2);
2064 y3=erf(x3);
2067 if (abs(erf(0))>1d-15) then bugmes();quit;end
2068 if (abs(erf(%inf)-1)>1d-15) then bugmes();quit;end
2073 if (abs(erf(x4)-2/sqrt(%pi)*intg(0,x4,f))>10*%eps) then bugmes();quit;end
[all …]
H A Derf.tst13 //writeto("erf.ref"):interface(prettyprint=0):
14 //for i from 0 to 40 do print(evalf[30](erf(10^(-(200-i*5))),30)): od:
15 //for i from 2 to 1000 do print(evalf[30](erf(i/1000),30)): od:
16 //for i from 1 to 1000 do print(evalf[30](erf(i/100),30)): od:
62 e1=max(norm((y1ref-erf(x1))./abs(y1ref),1), norm((y1ref+erf(-x1))./ abs(y1ref),1));
1065 y2=erf(x2);
2070 y3=erf(x3);
2075 if (abs(erf(0))>1d-15) then pause,end
2077 if (abs(erf(%inf)-1)>1d-15) then pause,end
2083 if (abs(erf(x4)-2/sqrt(%pi)*intg(0,x4,f))>10*%eps) then pause,end
[all …]
/dports/math/stanmath/math-4.2.0/test/unit/math/prim/fun/
H A Derf_test.cpp7 TEST(MathFunctions, erf) { in TEST() argument
8 using stan::math::erf; in TEST()
9 EXPECT_FLOAT_EQ(-0.3286267594591274, erf(-0.3)); in TEST()
10 EXPECT_FLOAT_EQ(0, erf(0)); in TEST()
11 EXPECT_FLOAT_EQ(0.9999939742388482, erf(3.2)); in TEST()
15 EXPECT_FLOAT_EQ(-1, erf(-100)); in TEST()
16 EXPECT_FLOAT_EQ(1, erf(100)); in TEST()
21 EXPECT_TRUE(std::isnan(stan::math::erf(nan))); in TEST()
/dports/devel/intel-graphics-compiler/intel-graphics-compiler-igc-1.0.9636/IGC/BiFModule/Languages/OpenCL/Math/
H A Derf.cl12 INLINE float OVERLOADABLE erf( float x )
14 return SPIRV_OCL_BUILTIN(erf, _f32, )( x );
17 GENERATE_VECTOR_FUNCTIONS_1ARG( erf, float, float )
21 INLINE double OVERLOADABLE erf( double x )
23 return SPIRV_OCL_BUILTIN(erf, _f64, )( x );
26 GENERATE_VECTOR_FUNCTIONS_1ARG( erf, double, double )
32 INLINE half OVERLOADABLE erf( half x )
34 return SPIRV_OCL_BUILTIN(erf, _f16, )( x );
37 GENERATE_VECTOR_FUNCTIONS_1ARG( erf, half, half )

12345678910>>...167