Home
last modified time | relevance | path

Searched refs:hypot (Results 1 – 25 of 166) sorted by relevance

1234567

/third_party/boost/libs/math/test/
Dhypot_test.cpp46 float expected = static_cast<float>((boost::math::hypot)( in do_test_boundaries()
54 float found = (boost::math::hypot)(x, y); in do_test_boundaries()
91 BOOST_CHECK_EQUAL(boost::math::hypot(boundaries[i], zero), std::fabs(boundaries[i])); in test_spots()
92 BOOST_CHECK_EQUAL(boost::math::hypot(-boundaries[i], zero), std::fabs(-boundaries[i])); in test_spots()
93 BOOST_CHECK_EQUAL(boost::math::hypot(boundaries[i], -zero), std::fabs(boundaries[i])); in test_spots()
94 BOOST_CHECK_EQUAL(boost::math::hypot(-boundaries[i], -zero), std::fabs(-boundaries[i])); in test_spots()
97 …BOOST_CHECK_EQUAL(boost::math::hypot(boundaries[i], boundaries[j]), boost::math::hypot(boundaries[… in test_spots()
98 …BOOST_CHECK_EQUAL(boost::math::hypot(boundaries[i], boundaries[j]), boost::math::hypot(boundaries[… in test_spots()
99 …BOOST_CHECK_EQUAL(boost::math::hypot(-boundaries[i], -boundaries[j]), boost::math::hypot(-boundari… in test_spots()
100 …BOOST_CHECK_EQUAL(boost::math::hypot(-boundaries[i], -boundaries[j]), boost::math::hypot(-boundari… in test_spots()
[all …]
Dtest_cstdfloat.cpp399 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val, s)), T(20.0997512422417805404385298255191523738900469… in test()
400 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val, 2)), T(20.0997512422417805404385298255191523738900469… in test()
401 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val, 2.0)), T(20.09975124224178054043852982551915237389004… in test()
402 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(20, s)), T(20.09975124224178054043852982551915237389004694… in test()
403 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(20.0, s)), T(20.099751242241780540438529825519152373890046… in test()
404 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val * 1, s)), T(20.099751242241780540438529825519152373890… in test()
405 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val * 1, s * 1)), T(20.09975124224178054043852982551915237… in test()
406 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val * 1, 2)), T(20.099751242241780540438529825519152373890… in test()
407 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(val * 1, 2.0)), T(20.0997512422417805404385298255191523738… in test()
408 …BOOST_CHECK_CLOSE_FRACTION(T(std::hypot(20, s * 1)), T(20.0997512422417805404385298255191523738900… in test()
[all …]
/third_party/boost/libs/math/test/compile_test/
Dsf_hypot_incl_test.cpp18 check_result<float>(boost::math::hypot<float>(f, f)); in compile_and_link_test()
19 check_result<double>(boost::math::hypot<double>(d, d)); in compile_and_link_test()
21 check_result<long double>(boost::math::hypot<long double>(l, l)); in compile_and_link_test()
/third_party/skia/third_party/externals/dng_sdk/source/
Ddng_types.h109 #ifdef hypot
110 #undef hypot
113 #define hypot _hypot macro
/third_party/musl/src/math/i386/
Dhypot.s1 .global hypot symbol
2 .type hypot,@function
3 hypot: label
/third_party/boost/boost/geometry/srs/projections/proj/
Dgeos.hpp94 …r = (this->m_proj_parm.radius_p) / boost::math::hypot(this->m_proj_parm.radius_p * cos (lp_lat), s… in fwd()
108 … xy_x = this->m_proj_parm.radius_g_1 * atan (Vy / boost::math::hypot (Vz, tmp)); in fwd()
112 … xy_y = this->m_proj_parm.radius_g_1 * atan (Vz / boost::math::hypot (Vy, tmp)); in fwd()
127 … Vy = tan (xy_x / this->m_proj_parm.radius_g_1) * boost::math::hypot(1.0, Vz); in inv()
130 … Vz = tan (xy_y / this->m_proj_parm.radius_g_1) * boost::math::hypot(1.0, Vy); in inv()
187 … xy_x = this->m_proj_parm.radius_g_1 * atan(Vy / boost::math::hypot(Vz, tmp)); in fwd()
191 … xy_y = this->m_proj_parm.radius_g_1 * atan(Vz / boost::math::hypot(Vy, tmp)); in fwd()
Dtpeqd.hpp99 cz1 = cos(boost::math::hypot(xy_y, xy_x + this->m_proj_parm.hz0)); in inv()
100 cz2 = cos(boost::math::hypot(xy_y, xy_x - this->m_proj_parm.hz0)); in inv()
104 … lp_lat = aacos(boost::math::hypot(this->m_proj_parm.thz0 * s, d) * this->m_proj_parm.rhshz0); in inv()
/third_party/boost/boost/graph/
Dtopology.hpp156 dist = boost::math::hypot(dist, diff); in distance()
210 n = boost::math::hypot(n, delta[i]); in norm()
477 r = boost::math::hypot(r, a[i]); in bound()
491 r = boost::math::hypot(r, a[i]); in distance_from_boundary()
591 if (boost::math::hypot(p[0] - -500, p[1] - -500) in in_heart()
594 if (boost::math::hypot(p[0] - 500, p[1] - -500) in in_heart()
656 return boost::math::hypot(b[0] - a[0], b[1] - a[1]); in distance()
661 return boost::math::hypot(a[0], a[1]) in distance()
662 + boost::math::hypot(b[0], b[1]); in distance()
676 double distance_to_point_a = boost::math::hypot(a[0], a[1]); in move_position_toward()
[all …]
/third_party/python/Lib/test/
Dtest_math.py735 hypot = math.hypot
742 hypot(*args[:i]),
747 self.assertEqual(hypot(12.0, 5.0), 13.0)
748 self.assertEqual(hypot(12, 5), 13)
749 self.assertEqual(hypot(Decimal(12), Decimal(5)), 13)
750 self.assertEqual(hypot(Fraction(12, 32), Fraction(5, 32)), Fraction(13, 32))
751 self.assertEqual(hypot(bool(1), bool(0), bool(1), bool(1)), math.sqrt(3))
754 self.assertEqual(hypot(0.0, 0.0), 0.0) # Max input is zero
755 self.assertEqual(hypot(-10.5), 10.5) # Negative input
756 self.assertEqual(hypot(), 0.0) # Negative input
[all …]
/third_party/musl/src/complex/
Dcsqrtf.c76 t = sqrt((a + hypot(a, b)) * 0.5); in csqrtf()
79 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrtf()
Dcsqrt.c89 t = sqrt((a + hypot(a, b)) * 0.5); in csqrt()
92 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrt()
Dcabs.c5 return hypot(creal(z), cimag(z)); in cabs()
/third_party/ffmpeg/libavutil/
Ddisplay.c38 scale[0] = hypot(CONV_FP(matrix[0]), CONV_FP(matrix[3])); in av_display_rotation_get()
39 scale[1] = hypot(CONV_FP(matrix[1]), CONV_FP(matrix[4])); in av_display_rotation_get()
/third_party/boost/libs/math/doc/sf/
Dpowers.qbk303 [section:hypot hypot]
306 ``__sf_result`` hypot(T1 x, T2 y);
309 ``__sf_result`` hypot(T1 x, T2 y, const ``__Policy``&);
311 __effects computes [equation hypot]
319 When calculating [equation hypot] it's quite easy for the intermediate terms to either
333 [endsect] [/section:hypot hypot]
/third_party/boost/boost/math/special_functions/
Dhypot.hpp64 hypot(T1 x, T2 y) in hypot() function
73 hypot(T1 x, T2 y, const Policy& pol) in hypot() function
/third_party/boost/boost/python/detail/
Dwrap_python.hpp112 # define hypot _hypot macro
147 # undef hypot // undo the evil #define left by Python.
/third_party/ffmpeg/libavfilter/opencl/
Dconvolution.cl73 float4 dstPix = hypot(sum1, sum2) * div + bias;
102 float4 dstPix = hypot(sum1, sum2) * div + bias;
125 float4 dstPix = hypot(sum1, sum2) * div + bias;
/third_party/musl/libc-test/src/api/
Dtgmath.c156 #ifdef hypot in f()
157 {double r = hypot(x,y);} in f()
159 #error no hypot(x,y) in f()
/third_party/boost/libs/math/src/tr1/
Dhypotf.cpp18 return c_policies::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); in BOOST_PREVENT_MACRO_SUBSTITUTION()
Dhypotl.cpp18 return c_policies::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); in BOOST_PREVENT_MACRO_SUBSTITUTION()
Dhypot.cpp18 return c_policies::hypot BOOST_PREVENT_MACRO_SUBSTITUTION(x, y); in BOOST_PREVENT_MACRO_SUBSTITUTION()
/third_party/boost/boost/math/complex/
Dfabs.hpp18 return ::boost::math::hypot(z.real(), z.imag()); in fabs()
/third_party/ltp/testcases/misc/math/float/
Dfloat_exp_log.c37 {FUNC_HYPOT, 50, hypot, "hypot", "hypot_inp.ref", "hypot_out.ref",
/third_party/jerryscript/tests/jerry/es2015/
Dmath-functions-tonumber-rule2.js22 Math.hypot (a, b, c, d, e);
/third_party/python/Modules/
Dcmathmodule.c231 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
234 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl()
270 r.real = log(hypot(z.real/2., z.imag/2.)) + M_LN2*2.; in cmath_acosh_impl()
325 r.real = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_asinh_impl()
328 r.real = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_asinh_impl()
427 h = hypot(z.real/2., z.imag/2.); /* safe from overflow */ in cmath_atanh_impl()
442 r.real = -log(sqrt(ay)/sqrt(hypot(ay, 2.))); in cmath_atanh_impl()
638 r.real = log(hypot(ax/2., ay/2.)) + M_LN2; in c_log()
642 r.real = log(hypot(ldexp(ax, DBL_MANT_DIG), in c_log()
653 h = hypot(ax, ay); in c_log()
[all …]

1234567