Home
last modified time | relevance | path

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

12345

/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
Dmath_hypot_test.cpp24 …bool testResult = DoubleUlpCmp(g_hypotData[i].expected, hypot(g_hypotData[i].input1, g_hypotData[i…
36 EXPECT_DOUBLE_EQ(10.0, hypot(6.0, 8.0));
46 EXPECT_EQ(HUGE_VAL, hypot(4.0, HUGE_VAL));
47 EXPECT_EQ(HUGE_VAL, hypot(4.0, -HUGE_VAL));
48 EXPECT_EQ(HUGE_VAL, hypot(HUGE_VAL, 5.0));
49 EXPECT_EQ(HUGE_VAL, hypot(-HUGE_VAL, 5.0));
59 EXPECT_TRUE(isnan(hypot(6.0, nan(""))));
60 EXPECT_TRUE(isnan(hypot(nan(""), 8.0)));
/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/typescript/tests/ts_extra_tests/test_ts_cases/spec/classes/class_declarations/class_heritage_specification/
Dclass_heritage_specification_4.ts29 public hypot() {return "what are you doing?" } method in Compute
35 Assert.isString(p.hypot());
Dclass_heritage_specification_1.ts27 public hypot() { method in Compute
52 Assert.equal(5,count.hypot());
Dclass_heritage_specification_2.ts27 public hypot() { method in Compute
35 Assert.equal(5,p.hypot())
/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/typescript/tests/ts_extra_tests/test_ts_cases/spec/classes/members/instance_and_static_members/
Dinstance_and_static_members_2.ts53 public hypot() { method in Compute
77 Assert.equal(count.hypot(),5);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/classes/class_declarations/
Dclass_declarations_3.ts34 public hypot() { method in Compute
51 Assert.equal(10,mc4.field.hypot());
Dclass_declarations_2.ts32 return Math.hypot(dx, dy);
/third_party/typescript/tests/ts_extra_tests/test_ts_cases/spec/classes/class_declarations/class_body/
Dclass_body.ts33 public hypot() { method in Compute
44 Assert.equal(5, p2.hypot())
/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/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 …]
/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/typescript/tests/baselines/reference/
DdoYouNeedToChangeYourTargetLibraryES2015.js53 const testMathHypot = Math.hypot(0,0);
151 var testMathHypot = Math.hypot(0, 0);
/third_party/python/Python/
Dpymath.c37 double hypot(double x, double y) in hypot() function
/third_party/libinput/src/
Devdev-mt-touchpad-gestures.c405 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_pointer_motion_handle_event()
875 first_mm = hypot(first_moved.x, first_moved.y); in tp_gesture_detect_motion_gestures()
914 second_mm = hypot(second_moved.x, second_moved.y); in tp_gesture_detect_motion_gestures()
1035 first_mm = hypot(first_moved.x, first_moved.y); in tp_gesture_is_pinch()
1040 second_mm = hypot(second_moved.x, second_moved.y); in tp_gesture_is_pinch()
1287 thumb_mm = hypot(thumb_moved.x, thumb_moved.y); in tp_gesture_thumb_moved()
/third_party/ffmpeg/tests/ref/fate/
Deval268 Evaluating 'hypot(4,3)'
269 'hypot(4,3)' -> 5.000000
/third_party/musl/porting/liteos_m/kernel/include/
Dtgmath.h176 #undef hypot
239 #define hypot(x,y) __tg_real_2(hypot, (x), (y)) macro

12345