/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/ |
H A D | math_hypot_test.cpp | 17 * @tc.desc: Obtain test data in sequence and check if it is within the expected error range of the hypot interface. 24 bool testResult = DoubleUlpCmp(g_hypotData[i].expected, hypot(g_hypotData[i].input1, g_hypotData[i].input2), 1); in HWTEST_F() 36 EXPECT_DOUBLE_EQ(10.0, hypot(6.0, 8.0)); in HWTEST_F() 46 EXPECT_EQ(HUGE_VAL, hypot(4.0, HUGE_VAL)); in HWTEST_F() 47 EXPECT_EQ(HUGE_VAL, hypot(4.0, -HUGE_VAL)); in HWTEST_F() 48 EXPECT_EQ(HUGE_VAL, hypot(HUGE_VAL, 5.0)); in HWTEST_F() 49 EXPECT_EQ(HUGE_VAL, hypot(-HUGE_VAL, 5.0)); in HWTEST_F() 59 EXPECT_TRUE(isnan(hypot(6.0, nan("")))); in HWTEST_F() 60 EXPECT_TRUE(isnan(hypot(nan(""), 8.0))); in HWTEST_F()
|
/third_party/skia/third_party/externals/dng_sdk/source/ |
H A D | dng_types.h | 103 // Visual Studio now prefers _hypot to hypot 104 // Note: since Visual Studio 2010, there is a definition of hypot (in math.h), 105 // we only define hypot here for the older Visual Studio versions. 109 #ifdef hypot 110 #undef hypot macro 113 #define hypot _hypot macro
|
H A D | dng_rect.h | 190 return hypot ((real64) W (), in Diagonal() 333 return hypot (W (), H ()); in Diagonal()
|
/third_party/musl/src/math/i386/ |
H A D | hypot.s | 1 .global hypot 2 .type hypot,@function 3 hypot: label
|
/third_party/python/Lib/test/ |
H A D | test_math.py | 762 hypot = math.hypot 769 hypot(*args[:i]), 774 self.assertEqual(hypot(12.0, 5.0), 13.0) 775 self.assertEqual(hypot(12, 5), 13) 776 self.assertEqual(hypot(Decimal(12), Decimal(5)), 13) 777 self.assertEqual(hypot(Fraction(12, 32), Fraction(5, 32)), Fraction(13, 32)) 778 self.assertEqual(hypot(bool(1), bool(0), bool(1), bool(1)), math.sqrt(3)) 781 self.assertEqual(hypot(0.0, 0.0), 0.0) # Max input is zero 782 self.assertEqual(hypot( [all...] |
/third_party/musl/src/complex/ |
H A D | csqrtf.c | 76 t = sqrt((a + hypot(a, b)) * 0.5); in csqrtf() 79 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrtf()
|
H A D | csqrt.c | 89 t = sqrt((a + hypot(a, b)) * 0.5); in csqrt() 92 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrt()
|
H A D | cabs.c | 5 return hypot(creal(z), cimag(z)); in cabs()
|
/third_party/ffmpeg/libavutil/ |
H A D | display.c | 39 scale[0] = hypot(CONV_FP(matrix[0]), CONV_FP(matrix[3])); in av_display_rotation_get() 40 scale[1] = hypot(CONV_FP(matrix[1]), CONV_FP(matrix[4])); in av_display_rotation_get()
|
/third_party/musl/libc-test/src/api/ |
H A D | tgmath.c | 156 #ifdef hypot in f() 157 {double r = hypot(x,y);} in f() 159 #error no hypot(x,y) in f()
|
/third_party/ltp/testcases/misc/math/float/ |
H A D | float_exp_log.c | 37 {FUNC_HYPOT, 50, hypot, "hypot", "hypot_inp.ref", "hypot_out.ref",
|
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | math-functions-tonumber-rule2.js | 22 Math.hypot (a, b, c, d, e);
|
/third_party/python/Modules/ |
H A D | cmathmodule.c | 238 r.imag = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 241 r.imag = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_acos_impl() 277 r.real = log(hypot(z.real/2., z.imag/2.)) + M_LN2*2.; in cmath_acosh_impl() 332 r.real = copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_asinh_impl() 335 r.real = -copysign(log(hypot(z.real/2., z.imag/2.)) + in cmath_asinh_impl() 434 h = hypot(z.real/2., z.imag/2.); /* safe from overflow */ in cmath_atanh_impl() 449 r.real = -log(sqrt(ay)/sqrt(hypot(ay, 2.))); in cmath_atanh_impl() 609 The usual formula for the real part is log(hypot(z.real, z.imag)). in c_log() 613 (1) the absolute value of z is subnormal. Then hypot is subnormal, in c_log() 645 r.real = log(hypot(a in c_log() [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | doYouNeedToChangeYourTargetLibraryES2015.js | 53 const testMathHypot = Math.hypot(0,0); 151 var testMathHypot = Math.hypot(0, 0);
|
/third_party/libinput/src/ |
H A D | evdev-mt-touchpad-gestures.c | 405 vector_length = hypot(vector.x, vector.y); in tp_gesture_apply_scroll_constraints() 709 first_mm = hypot(first_moved.x, first_moved.y); in tp_gesture_handle_event_on_state_pointer_motion() 879 first_mm = hypot(first_moved.x, first_moved.y); in tp_gesture_detect_motion_gestures() 918 second_mm = hypot(second_moved.x, second_moved.y); in tp_gesture_detect_motion_gestures() 1039 first_mm = hypot(first_moved.x, first_moved.y); in tp_gesture_is_pinch() 1044 second_mm = hypot(second_moved.x, second_moved.y); in tp_gesture_is_pinch() 1293 thumb_mm = hypot(thumb_moved.x, thumb_moved.y); in tp_gesture_thumb_moved()
|
/third_party/musl/libc-test/src/math/ |
H A D | hypot.c | 6 #include "ucb/hypot.h" 7 #include "sanity/hypot.h" 8 #include "special/hypot.h" 27 y = hypot(p->x, p->x2); in main() 31 printf("%s:%d: bad fp exception: %s hypot(%a,%a)=%a, want %s", in main() 38 printf("%s:%d: %s hypot(%a,%a) want %a got %a ulperr %.3f = %a + %a\n", in main()
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | tgmath.h | 176 #undef hypot macro 239 #define hypot(x,y) __tg_real_2(hypot, (x), (y)) macro
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | tgmath.h | 176 #undef hypot macro 239 #define hypot(x,y) __tg_real_2(hypot, (x), (y)) macro
|
/third_party/musl/include/ |
H A D | tgmath.h | 176 #undef hypot macro 239 #define hypot(x,y) __tg_real_2(hypot, (x), (y)) macro
|
/third_party/musl/src/math/ |
H A D | hypot.c | 22 double hypot(double x, double y) in hypot() function 42 /* note: hypot(inf,nan) == inf */ in hypot() 47 /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ in hypot()
|
H A D | hypotl.c | 6 return hypot(x, y); in hypotl()
|
/third_party/musl/porting/liteos_a/kernel/src/math/ |
H A D | hypot.c | 22 double hypot(double x, double y) in hypot() function 42 /* note: hypot(inf,nan) == inf */ in hypot() 47 /* note: hypot(x,y) ~= x + y*y/x/2 with inexact for small y/x */ in hypot()
|
H A D | hypotl.c | 6 return hypot(x, y); in hypotl()
|
/third_party/ltp/testcases/misc/math/float/exp_log/ |
H A D | genhypot.c | 54 tabR[i] = hypot(cos(Inc * i), sin(Inc * i)); in create_Result_file()
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_aemphasis.c | 201 return hypot(c->a0 + c->a1*zr + c->a2*(zr*zr-zi*zi), c->a1*zi + 2*c->a2*zr*zi) / in freq_gain() 202 hypot(1 + c->b1*zr + c->b2*(zr*zr-zi*zi), c->b1*zi + 2*c->b2*zr*zi); in freq_gain()
|