/dports/devel/emscripten/emscripten-2.0.3/tests/core/ |
H A D | test_math_hyperbolic.out | 4 tanh: -1 12 tanh: -1 20 tanh: -1 28 tanh: -1 36 tanh: -1 44 tanh: -1 52 tanh: -1 60 tanh: -1 68 tanh: -1 76 tanh: -1 [all …]
|
/dports/math/libpgmath/flang-d07daf3/runtime/libpgmath/lib/x86_64/math_tables/ |
H A D | mth_tanhdefs.h | 18 MTHINTRIN(tanh , ss , em64t , __mth_i_tanh , __mth_i_tanh , __mth_i_tanh … 19 MTHINTRIN(tanh , ds , em64t , __mth_i_dtanh , __mth_i_dtanh , __mth_i_dtanh … 20 MTHINTRIN(tanh , sv4 , em64t , __gs_tanh_4_f , __gs_tanh_4_r , __gs_tanh_4_p … 21 MTHINTRIN(tanh , dv2 , em64t , __gd_tanh_2_f , __gd_tanh_2_r , __gd_tanh_2_p … 22 MTHINTRIN(tanh , sv4m , em64t , __fs_tanh_4_mn , __rs_tanh_4_mn , __ps_tanh_4_mn… 23 MTHINTRIN(tanh , dv2m , em64t , __fd_tanh_2_mn , __rd_tanh_2_mn , __pd_tanh_2_mn… 25 MTHINTRIN(tanh , ss , sse4 , __mth_i_tanh , __mth_i_tanh , __mth_i_tanh … 26 MTHINTRIN(tanh , ds , sse4 , __mth_i_dtanh , __mth_i_dtanh , __mth_i_dtanh … 27 MTHINTRIN(tanh , sv4 , sse4 , __gs_tanh_4_f , __gs_tanh_4_r , __gs_tanh_4_p … 28 MTHINTRIN(tanh , dv2 , sse4 , __gd_tanh_2_f , __gd_tanh_2_r , __gd_tanh_2_p … [all …]
|
/dports/math/scilab/scilab-6.1.1/scilab/modules/m2sci/tests/unit_tests/mfiles/ |
H A D | TANH.m | 1 % Test file for function tanh() 5 res1 = tanh([]); 7 res2 = tanh(m2sciUnknownType([])); 9 res3 = tanh(m2sciUnknownDims([])); 11 res4 = tanh([1]); 13 res5 = tanh([1,2,3]); 15 res6 = tanh([1;2;3]); 17 res7 = tanh([1,2,3;4,5,6]); 35 res16 = tanh([i]); 37 res17 = tanh([i,2i,3i]); [all …]
|
/dports/math/stan/stan-2.28.2/src/test/test-models/good/function-signatures/math/matrix/ |
H A D | tanh.stan | 40 trans_x3y = tanh(x3y); 41 trans_x4y = tanh(x4y); 42 trans_x5y = tanh(x5y); 43 trans_x2z = tanh(x1z); 44 trans_x2z = tanh(x2z); 45 trans_x3z = tanh(x3z); 46 trans_x4z = tanh(x4z); 47 trans_x5z = tanh(x5z); 48 trans_x2w = tanh(x1w); 49 trans_x2w = tanh(x2w); [all …]
|
/dports/devel/gcem/gcem-1.13.1/tests/ |
H A D | tanh.cpp | 32 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, 0.0L); in main() 33 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, 0.001L); in main() 34 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, 0.5L); in main() 35 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, -0.5L); in main() 36 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, 0.7568025L); in main() 37 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, 1.0L); in main() 38 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, 5.0L); in main() 40 GCEM_TEST_COMPARE_VALS(gcem::tanh,std::tanh, TEST_NAN); in main()
|
/dports/lang/php73/php-7.3.33/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 15 echo "tanh .5 = "; 16 var_dump(tanh(0.5)); 24 echo "tanh -0.5 = "; 25 var_dump(tanh(-0.5)); 33 echo "tanh 3 = "; 34 var_dump(tanh(3.0)); 42 echo "tanh -3 = "; 43 var_dump(tanh(-3.0)); 53 tanh .5 = float(%f) 57 tanh 3 = float(%f) [all …]
|
/dports/lang/php74/php-7.4.27/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 15 echo "tanh .5 = "; 16 var_dump(tanh(0.5)); 24 echo "tanh -0.5 = "; 25 var_dump(tanh(-0.5)); 33 echo "tanh 3 = "; 34 var_dump(tanh(3.0)); 42 echo "tanh -3 = "; 43 var_dump(tanh(-3.0)); 53 tanh .5 = float(%f) 57 tanh 3 = float(%f) [all …]
|
/dports/www/mod_php73/php-7.3.33/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 15 echo "tanh .5 = "; 16 var_dump(tanh(0.5)); 24 echo "tanh -0.5 = "; 25 var_dump(tanh(-0.5)); 33 echo "tanh 3 = "; 34 var_dump(tanh(3.0)); 42 echo "tanh -3 = "; 43 var_dump(tanh(-3.0)); 53 tanh .5 = float(%f) 57 tanh 3 = float(%f) [all …]
|
/dports/www/mod_php74/php-7.4.27/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 15 echo "tanh .5 = "; 16 var_dump(tanh(0.5)); 24 echo "tanh -0.5 = "; 25 var_dump(tanh(-0.5)); 33 echo "tanh 3 = "; 34 var_dump(tanh(3.0)); 42 echo "tanh -3 = "; 43 var_dump(tanh(-3.0)); 53 tanh .5 = float(%f) 57 tanh 3 = float(%f) [all …]
|
/dports/www/mod_php81/php-8.1.1/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 14 echo "tanh .5 = "; 15 var_dump(tanh(0.5)); 23 echo "tanh -0.5 = "; 24 var_dump(tanh(-0.5)); 32 echo "tanh 3 = "; 33 var_dump(tanh(3.0)); 41 echo "tanh -3 = "; 42 var_dump(tanh(-3.0)); 52 tanh .5 = float(%f) 56 tanh 3 = float(%f) [all …]
|
/dports/lang/php80/php-8.0.15/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 14 echo "tanh .5 = "; 15 var_dump(tanh(0.5)); 23 echo "tanh -0.5 = "; 24 var_dump(tanh(-0.5)); 32 echo "tanh 3 = "; 33 var_dump(tanh(3.0)); 41 echo "tanh -3 = "; 42 var_dump(tanh(-3.0)); 52 tanh .5 = float(%f) 56 tanh 3 = float(%f) [all …]
|
/dports/lang/php81/php-8.1.1/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 14 echo "tanh .5 = "; 15 var_dump(tanh(0.5)); 23 echo "tanh -0.5 = "; 24 var_dump(tanh(-0.5)); 32 echo "tanh 3 = "; 33 var_dump(tanh(3.0)); 41 echo "tanh -3 = "; 42 var_dump(tanh(-3.0)); 52 tanh .5 = float(%f) 56 tanh 3 = float(%f) [all …]
|
/dports/www/mod_php80/php-8.0.15/ext/standard/tests/math/ |
H A D | tanh_basic.phpt | 14 echo "tanh .5 = "; 15 var_dump(tanh(0.5)); 23 echo "tanh -0.5 = "; 24 var_dump(tanh(-0.5)); 32 echo "tanh 3 = "; 33 var_dump(tanh(3.0)); 41 echo "tanh -3 = "; 42 var_dump(tanh(-3.0)); 52 tanh .5 = float(%f) 56 tanh 3 = float(%f) [all …]
|
/dports/math/heyoka/heyoka-0.16.0/test/ |
H A D | taylor_tanh.cpp | 104 using std::tanh; 134 using std::tanh; 140 taylor_add_jet<double>(s, "jet", {square(tanh(x + y)) + tanh(x + y), x}, 2, 1, false, false); 153 …REQUIRE(jet[2] == approximately(tanh(jet[0] + jet[1]) * tanh(jet[0] + jet[1]) + tanh(jet[0] + jet[… 157 … * (2 * tanh(jet[0] + jet[1]) * (1 - tanh(jet[0] + jet[1]) * tanh(jet[0] + jet[1])) 167 using std::tanh; in __anonb75a90380202() 440 taylor_add_jet<fp_t>(s, "jet", {tanh(y), tanh(x)}, 1, 1, high_accuracy, compact_mode); in __anonb75a90380202() 460 taylor_add_jet<fp_t>(s, "jet", {tanh(y), tanh(x)}, 1, 2, high_accuracy, compact_mode); in __anonb75a90380202() 487 taylor_add_jet<fp_t>(s, "jet", {tanh(y), tanh(x)}, 2, 1, high_accuracy, compact_mode); in __anonb75a90380202() 509 taylor_add_jet<fp_t>(s, "jet", {tanh(y), tanh(x)}, 2, 2, high_accuracy, compact_mode); in __anonb75a90380202() [all …]
|
H A D | tanh.cpp | 24 REQUIRE(diff(tanh(x * x - y), x) == (1. - square(tanh(square(x) - y))) * (2. * x)); 25 REQUIRE(diff(tanh(x * x + y), y) == (1. - square(tanh(square(x) + y)))); 27 …REQUIRE(diff(tanh(par[0] * par[0] - y), par[0]) == (1. - square(tanh(square(par[0]) - y))) * (2. *… 28 REQUIRE(diff(tanh(x * x + par[1]), par[1]) == (1. - square(tanh(square(x) + par[1])))); 37 auto ex = tanh(x); 53 REQUIRE(ex == tanh(x));
|
/dports/math/libmesh/libmesh-1.6.2/contrib/fparser/tests/10optimizer_bytecode/ |
H A D | cmp_tanh | 4 F=1*(tanh(x)=tanh(0.75)) + \ 5 2*(tanh(x)<tanh(0.75)) + \ 6 4*(tanh(x)<=tanh(0.75)) + \ 7 8*(tanh(x)>tanh(0.75)) + \ 8 16*(tanh(x)>=tanh(0.75)) + \ 9 32*(tanh(x)!=tanh(0.75))
|
/dports/lang/ruby26/ruby-2.6.9/spec/ruby/core/math/ |
H A D | tanh_spec.rb | 6 Math.tanh(0.5).should be_kind_of(Float) 10 Math.tanh(0.0).should == 0.0 11 Math.tanh(-0.0).should == -0.0 12 Math.tanh(infinity_value).should == 1.0 13 Math.tanh(-infinity_value).should == -1.0 14 Math.tanh(2.5).should be_close(0.98661429815143, TOLERANCE) 15 Math.tanh(-4.892).should be_close(-0.999887314427707, TOLERANCE) 19 lambda { Math.tanh("test") }.should raise_error(TypeError) 23 Math.tanh(nan_value).nan?.should be_true 27 lambda { Math.tanh(nil) }.should raise_error(TypeError) [all …]
|
/dports/math/py-Diofant/Diofant-0.13.0/diofant/tests/functions/ |
H A D | test_hyperbolic.py | 196 assert tanh(1) == tanh(1) 197 assert tanh(-1) == -tanh(1) 199 assert tanh(x) == tanh(x) 200 assert tanh(-x) == -tanh(x) 202 assert tanh(pi) == tanh(pi) 203 assert tanh(-pi) == -tanh(pi) 215 assert tanh(pi*I/2) == tanh(pi*I/2) 216 assert tanh(-pi*I/2) == -tanh(pi*I/2) 236 assert tanh(2 + 3*I) == tanh(2 + 3*I) 763 assert sinh(x).rewrite(tanh) == 2*tanh(x/2)/(1 - tanh(x/2)**2) [all …]
|
/dports/graphics/openshadinglanguage/OpenShadingLanguage-Release-1.11.15.0/testsuite/hyperb/ |
H A D | test.osl | 12 printf (" tanh (%g) = %g\n", a, tanh(a)); 16 printf (" tanh (%g) = %g\n", a, tanh(a)); 20 printf (" tanh (%g) = %g\n", a, tanh(a)); 27 printf (" tanh (%g) = %g\n", a, tanh(a)); 31 printf (" tanh (%g) = %g\n", a, tanh(a)); 35 printf (" tanh (%g) = %g\n", a, tanh(a));
|
/dports/graphics/py-openshadinglanguage/OpenShadingLanguage-Release-1.11.15.0/testsuite/hyperb/ |
H A D | test.osl | 12 printf (" tanh (%g) = %g\n", a, tanh(a)); 16 printf (" tanh (%g) = %g\n", a, tanh(a)); 20 printf (" tanh (%g) = %g\n", a, tanh(a)); 27 printf (" tanh (%g) = %g\n", a, tanh(a)); 31 printf (" tanh (%g) = %g\n", a, tanh(a)); 35 printf (" tanh (%g) = %g\n", a, tanh(a));
|
/dports/math/freefem++/FreeFem-sources-4.6/unit/plugins/ |
H A D | MetricKuate.edp | 16 func f = tanh(c * (sin( (5 * y)) - (2 * x))) + (y * x * x) + pow( y, 3);; 18 …w(tanh(c * (sin( (5 * y)) - (2 * x))), 0.2e1), 0.2e1) * pow(c, 0.3e1) - 0.32e2 * pow(tanh(c * (si… 19 …tanh(c * (sin( (5 * y)) - (2 * x))), 0.2e1), 0.2e1) * pow(c, 0.3e1) * cos( (5 * y)) + 0.80e2 * po… 20 …tanh(c * (sin( (5 * y)) - (2 * x))), 0.2e1), 0.2e1) * pow(c, 0.3e1) * pow(cos( (5 * y)), 0.2e1) -… 22 …tanh(c * (sin( (5 * y)) - (2 * x))), 0.2e1), 0.2e1) * pow(c, 0.3e1) * pow(cos( (5 * y)), 0.3e1) +…
|
/dports/devel/intel-graphics-compiler/intel-graphics-compiler-igc-1.0.9636/IGC/BiFModule/Languages/OpenCL/Math/ |
H A D | tanh.cl | 12 float OVERLOADABLE tanh( float x ) 14 return SPIRV_OCL_BUILTIN(tanh, _f32, )( x ); 17 GENERATE_VECTOR_FUNCTIONS_1ARG_LOOP( tanh, float, float ) 21 INLINE double OVERLOADABLE tanh( double x ) 23 return SPIRV_OCL_BUILTIN(tanh, _f64, )( x ); 26 GENERATE_VECTOR_FUNCTIONS_1ARG_LOOP( tanh, double, double ) 32 INLINE half OVERLOADABLE tanh( half x ) 34 return SPIRV_OCL_BUILTIN(tanh, _f16, )( x ); 37 GENERATE_VECTOR_FUNCTIONS_1ARG_LOOP( tanh, half, half )
|
/dports/math/octave-forge-symbolic/symbolic-2.9.0/inst/@sym/ |
H A D | tanh.m | 21 %% @defmethod @@sym tanh (@var{x}) 22 %% Symbolic tanh function. 28 %% y = tanh (x) 29 %% @result{} y = (sym) tanh(x) 39 function y = tanh(x) function 55 %! f1 = tanh(x); 56 %! f2 = tanh(d); 62 %! f1 = tanh(A); 63 %! f2 = tanh(D); 69 %! A = tanh (d); [all …]
|
/dports/math/py-sympy/sympy-1.9/sympy/functions/elementary/tests/ |
H A D | test_hyperbolic.py | 185 assert tanh(oo) == 1 186 assert tanh(-oo) == -1 188 assert tanh(0) == 0 191 assert tanh(-1) == -tanh(1) 194 assert tanh(-x) == -tanh(x) 197 assert tanh(-pi) == -tanh(pi) 200 assert tanh(-2**1024 * E) == -tanh(2**1024 * E) 202 assert tanh(pi*I) == 0 243 assert tanh(x).as_real_imag(deep=False) == (tanh(x), 0) 1053 assert coth(x).rewrite(tanh) == 1/tanh(x) [all …]
|
/dports/math/octave-forge-interval/interval-3.2.0/inst/@infsup/ |
H A D | tanh.m | 18 ## @defmethod {@@infsup} tanh (@var{X}) 26 ## tanh (infsup (1)) 37 function x = tanh (x) function 45 l = mpfr_function_d ('tanh', -inf, x.inf); 46 u = mpfr_function_d ('tanh', +inf, x.sup); 64 %! x = tanh (infsup (0)); 74 %! testcases = testdata.NoSignal.infsup.tanh; 77 %! tanh (testcase.in{1}), ... 83 %! testcases = testdata.NoSignal.infsup.tanh; 86 %! assert (isequaln (tanh (in1), out)); [all …]
|