Home
last modified time | relevance | path

Searched refs:atanh (Results 1 – 25 of 252) sorted by relevance

1234567891011

/third_party/jerryscript/tests/jerry/es2015/
Dmath-atanh.js24 assert(isNaN(Math.atanh(NaN)));
25 assert(isNaN(Math.atanh(2)));
26 assert(isNaN(Math.atanh(44)));
27 assert(isNaN(Math.atanh(-2)));
28 assert(isNaN(Math.atanh(-13)));
29 assert(isSameZero(Math.atanh(p_zero), p_zero));
30 assert(isSameZero(Math.atanh(m_zero), m_zero));
31 assert(Math.atanh(-1) === Number.NEGATIVE_INFINITY);
32 assert(Math.atanh(1) === Number.POSITIVE_INFINITY);
/third_party/skia/resources/sksl/intrinsics/
DAtanh.sksl6 return (atanh(inputVal.x) == expected.x &&
7 atanh(inputVal.xy) == expected.xy &&
8 atanh(inputVal.xyz) == expected.xyz &&
9 atanh(inputVal.xyzw) == expected.xyzw &&
10 atanh(constVal1.x) == expected.x &&
11 atanh(constVal1.xy) == expected.xy &&
12 atanh(constVal1.xyz) == expected.xyz &&
13 atanh(constVal1.xyzw) == expected.xyzw) ? colorGreen : colorRed;
/third_party/boost/libs/math/test/
Datanh_test.hpp28 using ::boost::math::atanh; in atanh_error_evaluator()
34 T z = atanh(y); in atanh_error_evaluator()
52 using ::boost::math::atanh; in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
59 (abs(atanh<T>(static_cast<T>(0)))) in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
63 (abs(atanh<T>(static_cast<T>(3)/5) - log(static_cast<T>(2)))) in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
67 (abs(atanh<T>(static_cast<T>(-3)/5) + log(static_cast<T>(2)))) in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
88 BOOST_MATH_CHECK_THROW(atanh(T(-1)), std::overflow_error); in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
89 BOOST_MATH_CHECK_THROW(atanh(T(1)), std::overflow_error); in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
90 BOOST_MATH_CHECK_THROW(atanh(T(-2)), std::domain_error); in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
91 BOOST_MATH_CHECK_THROW(atanh(T(2)), std::domain_error); in BOOST_TEST_CASE_TEMPLATE_FUNCTION()
Dcomplex_test.cpp203 val = boost::math::atanh(val); in test_inverse_trig()
205 result = boost::math::atanh(inter); in test_inverse_trig()
232 inter = boost::math::atanh(val); in test_inverse_trig()
682 result = boost::math::atanh(ct(zero, zero)); in check_spots()
686 result = boost::math::atanh(ct(mzero, zero)); in check_spots()
690 result = boost::math::atanh(ct(zero, mzero)); in check_spots()
694 result = boost::math::atanh(ct(mzero, mzero)); in check_spots()
700 result = boost::math::atanh(ct(zero, nan)); in check_spots()
704 result = boost::math::atanh(ct(-zero, nan)); in check_spots()
711 result = boost::math::atanh(ct(one, zero)); in check_spots()
[all …]
Dtest_inv_hyp.cpp168 pg funcp = boost::math::atanh<value_type>; in do_test_atanh()
170 pg funcp = boost::math::atanh; in do_test_atanh()
246 BOOST_CHECK_CLOSE(::boost::math::atanh(static_cast<T>(0)), static_cast<T>(0), tolerance); in test_spots()
247 …BOOST_CHECK_CLOSE(::boost::math::atanh(static_cast<T>(1)/262145L), static_cast<T>(3.81468271378378… in test_spots()
248 …BOOST_CHECK_CLOSE(::boost::math::atanh(static_cast<T>(-1)/262145L), static_cast<T>(-3.814682713783… in test_spots()
249 …BOOST_CHECK_CLOSE(::boost::math::atanh(static_cast<T>(0.5)), static_cast<T>(0.54930614433405484569… in test_spots()
250 …BOOST_CHECK_CLOSE(::boost::math::atanh(static_cast<T>(-0.5)), static_cast<T>(-0.549306144334054845… in test_spots()
Dtest_autodiff_4.cpp123 using boost::math::atanh; in BOOST_AUTO_TEST_CASE_TEMPLATE()
132 auto autodiff_v = atanh(make_fvar<T, m>(x)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
133 auto anchor_v = atanh(x); in BOOST_AUTO_TEST_CASE_TEMPLATE()
/third_party/python/Lib/test/
Dcmath_testcases.txt914 -- atanh: Inverse hyperbolic tangent --
919 -- atanh0000 atanh 0.0 0.0 -> 0.0 0.0
920 -- atanh0001 atanh 0.0 -0.0 -> 0.0 -0.0
921 -- atanh0002 atanh -0.0 0.0 -> -0.0 0.0
922 -- atanh0003 atanh -0.0 -0.0 -> -0.0 -0.0
925 atanh0010 atanh -9.8813129168249309e-324 0.0 -> -9.8813129168249309e-324 0.0
926 atanh0011 atanh -9.8813129168249309e-324 -0.0 -> -9.8813129168249309e-324 -0.0
927 atanh0012 atanh -1e-305 0.0 -> -1e-305 0.0
928 atanh0013 atanh -1e-305 -0.0 -> -1e-305 -0.0
929 atanh0014 atanh -1e-150 0.0 -> -1e-150 0.0
[all …]
/third_party/skia/tests/sksl/intrinsics/
DAtanh.glsl8 …return ((((((atanh(inputVal.x) == expected.x && atanh(inputVal.xy) == expected.xy) && atanh(inputV…
DAtanh.metal18atanh(_uniforms.inputVal.x) == _uniforms.expected.x && all(atanh(_uniforms.inputVal.xy) == _unifor…
/third_party/jerryscript/tools/unit-tests/
Dgen-test-libm.c272 GEN_DBL_TEST (atanh (0.0)); in main()
273 GEN_DBL_TEST (atanh (-0.0)); in main()
274 GEN_DBL_TEST (atanh (1.0)); in main()
275 GEN_DBL_TEST (atanh (-1.0)); in main()
276 GEN_DBL_TEST (atanh (INFINITY)); in main()
277 GEN_DBL_TEST (atanh (-INFINITY)); in main()
278 GEN_DBL_TEST (atanh (NAN)); in main()
279 GEN_DBL_TEST (atanh (7.08e+02)); in main()
280 GEN_DBL_TEST (atanh (7.10e+02)); in main()
281 GEN_DBL_TEST (atanh (-7.40e+02)); in main()
[all …]
/third_party/jerryscript/tests/unit-libm/
Dtest-libm.inc.h224 check_double ("atanh (0.0)", atanh (0.0), 0.00000000000000000000E+00);
225 check_double ("atanh (-0.0)", atanh (-0.0), -0.00000000000000000000E+00);
226 check_double ("atanh (1.0)", atanh (1.0), INF);
227 check_double ("atanh (-1.0)", atanh (-1.0), -INF);
228 check_double ("atanh (INFINITY)", atanh (INFINITY), -NAN);
229 check_double ("atanh (-INFINITY)", atanh (-INFINITY), -NAN);
230 check_double ("atanh (NAN)", atanh (NAN), NAN);
231 check_double ("atanh (7.08e+02)", atanh (7.08e+02), -NAN);
232 check_double ("atanh (7.10e+02)", atanh (7.10e+02), -NAN);
233 check_double ("atanh (-7.40e+02)", atanh (-7.40e+02), -NAN);
[all …]
/third_party/boost/libs/math/test/compile_test/
Dcompl_atanh_incl_test.cpp21 check_result<std::complex<float> >(boost::math::atanh(std::complex<float>())); in compile_and_link_test()
22 check_result<std::complex<double> >(boost::math::atanh(std::complex<double>())); in compile_and_link_test()
24 check_result<std::complex<long double> >(boost::math::atanh(std::complex<long double>())); in compile_and_link_test()
/third_party/boost/boost/math/special_functions/
Datanh.hpp97 inline typename tools::promote_args<T>::type atanh(T x, const Policy&) in atanh() function
112 inline typename tools::promote_args<T>::type atanh(T x) in atanh() function
114 return boost::math::atanh(x, policies::policy<>()); in atanh()
/third_party/boost/libs/math/doc/complex/
Dcomplex-tr1.qbk115 [section:atanh atanh]
119 #include <boost/math/complex/atanh.hpp>
124 std::complex<T> atanh(const std::complex<T>& z);
128 __formula [$../images/atanh.png]
/third_party/boost/libs/math/doc/sf/
Dinv_hyper.qbk205 [section:atanh atanh]
208 #include <boost/math/special_functions/atanh.hpp>
212 ``__sf_result`` atanh(const T x);
215 ``__sf_result`` atanh(const T x, const ``__Policy``&);
245 [graph atanh]
279 [endsect] [/section:atanh atanh]
/third_party/mindspore/tests/st/ops/cpu/
Dtest_atanh_op.py30 self.atanh = P.Atanh()
33 return self.atanh(x)
/third_party/boost/libs/math/test/float128/
Dtest_std_lib.cpp117 …BOOST_CHECK_CLOSE_FRACTION(std::atanh(BOOST_FLOAT128_C(0.5)), BOOST_FLOAT128_C(0.54930614433405484… in BOOST_AUTO_TEST_CASE()
118 …BOOST_CHECK_CLOSE_FRACTION(std::atanh(BOOST_FLOAT128_C(-0.5)), BOOST_FLOAT128_C(-0.549306144334054… in BOOST_AUTO_TEST_CASE()
119 …BOOST_CHECK_CLOSE_FRACTION(std::atanh(BOOST_FLOAT128_C(0.75)), BOOST_FLOAT128_C(0.9729550745276566… in BOOST_AUTO_TEST_CASE()
120 …BOOST_CHECK_CLOSE_FRACTION(std::atanh(BOOST_FLOAT128_C(-0.75)), BOOST_FLOAT128_C(-0.97295507452765… in BOOST_AUTO_TEST_CASE()
121 …BOOST_CHECK_CLOSE_FRACTION(std::atanh(BOOST_FLOAT128_C(0.125)), BOOST_FLOAT128_C(0.125657214140453… in BOOST_AUTO_TEST_CASE()
122 …BOOST_CHECK_CLOSE_FRACTION(std::atanh(BOOST_FLOAT128_C(-0.125)), BOOST_FLOAT128_C(-0.1256572141404… in BOOST_AUTO_TEST_CASE()
123 BOOST_CHECK_EQUAL(std::atanh(BOOST_FLOAT128_C(0.0)), 0.0); in BOOST_AUTO_TEST_CASE()
236 …BOOST_CHECK_CLOSE_FRACTION(real(atanh(cm)), BOOST_FLOATMAX_C(0.13113111703103814575685836363111196… in BOOST_AUTO_TEST_CASE()
237 …BOOST_CHECK_CLOSE_FRACTION(imag(atanh(cm)), BOOST_FLOATMAX_C(1.38054313823871417607952773323453488… in BOOST_AUTO_TEST_CASE()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/detail/
Dfunc_trigonometric.inl175 // atanh
177 using std::atanh;
180 GLM_FUNC_QUALIFIER genType atanh(genType x) function
182 …GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'atanh' only accept floating-point inp…
191 GLM_FUNC_QUALIFIER vecType<T, P> atanh(vecType<T, P> const & v) function
193 return detail::functor1<T, T, P, vecType>::call(atanh, v);
/third_party/boost/boost/numeric/interval/
Drounded_transc.hpp44 BOOST_NUMERIC_INTERVAL_new_func(atanh)
79 BOOST_NUMERIC_INTERVAL_new_func(atanh)
123 BOOST_NUMERIC_INTERVAL_new_func(atanh)
/third_party/boost/libs/numeric/interval/examples/
Dtransc.cpp49 GENR_FUNC(atanh)
88 GENR_TEST(atanh); in main()
/third_party/vk-gl-cts/android/cts/master/src/
Dgles3-test-issues.txt12 dEQP-GLES3.functional.shaders.builtin_functions.precision.atanh.mediump_fragment.scalar
13 dEQP-GLES3.functional.shaders.builtin_functions.precision.atanh.mediump_fragment.vec2
14 dEQP-GLES3.functional.shaders.builtin_functions.precision.atanh.mediump_fragment.vec3
15 dEQP-GLES3.functional.shaders.builtin_functions.precision.atanh.mediump_fragment.vec4
91 dEQP-GLES3.functional.shaders.builtin_functions.precision.atanh.highp_*
/third_party/boost/libs/multiprecision/example/
Dmpc_examples.cpp70 using std::atanh; in complex_number_examples()
71 std::cout << "atanh(z1) = " << atanh(z1) << std::endl; in complex_number_examples()
Dcpp_complex_examples.cpp70 using std::atanh; in complex_number_examples()
71 std::cout << "atanh(z1) = " << atanh(z1) << std::endl; in complex_number_examples()
Dcomplex128_examples.cpp70 using std::atanh; in complex_number_examples()
71 std::cout << "atanh(z1) = " << atanh(z1) << std::endl; in complex_number_examples()
/third_party/musl/libc-test/src/api/
Dtgmath.c36 #ifdef atanh in f()
37 {double r = atanh(x);} in f()
39 #error no atanh(x) in f()

1234567891011