Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 31) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dcmath_testcases.txt1408 -- sqrt: Square root --
1412 sqrt0000 sqrt 0.0 0.0 -> 0.0 0.0
1413 sqrt0001 sqrt 0.0 -0.0 -> 0.0 -0.0
1414 sqrt0002 sqrt -0.0 0.0 -> 0.0 0.0
1415 sqrt0003 sqrt -0.0 -0.0 -> 0.0 -0.0
1418 sqrt0010 sqrt -9.8813129168249309e-324 0.0 -> 0.0 3.1434555694052576e-162
1419 sqrt0011 sqrt -9.8813129168249309e-324 -0.0 -> 0.0 -3.1434555694052576e-162
1420 sqrt0012 sqrt -1e-305 0.0 -> 0.0 3.1622776601683791e-153
1421 sqrt0013 sqrt -1e-305 -0.0 -> 0.0 -3.1622776601683791e-153
1422 sqrt0014 sqrt -1e-150 0.0 -> 0.0 9.9999999999999996e-76
[all …]
Dtest_math.py822 self.assertRaises(TypeError, math.sqrt)
823 self.ftest('sqrt(0)', math.sqrt(0), 0)
824 self.ftest('sqrt(1)', math.sqrt(1), 1)
825 self.ftest('sqrt(4)', math.sqrt(4), 2)
826 self.assertEqual(math.sqrt(INF), INF)
827 self.assertRaises(ValueError, math.sqrt, NINF)
828 self.assertTrue(math.isnan(math.sqrt(NAN)))
930 x = math.sqrt(-1.0)
Dtest_long.py624 sqrt = int(math.sqrt(sys.maxint))
625 special.extend([sqrt-1, sqrt, sqrt+1])
Dmath_testcases.txt28 -- invalid : raised for invalid inputs (e.g., sqrt(-1))
137 -- as x -> infinity, erfc(x) behaves like exp(-x*x)/x/sqrt(pi)
Dtest_decimal.py1602 self.assertEqual(str(Decimal(0).sqrt()),
1603 str(c.sqrt(Decimal(0))))
2136 d = c.sqrt(Decimal(10))
2137 self.assertEqual(c.sqrt(10), d)
2138 self.assertRaises(TypeError, c.sqrt, '10')
2237 (context.sqrt, [Decimal(2)]),
Dtest_builtin.py791 from math import sqrt
793 def sqrt(x): function
796 map(lambda x: map(sqrt,x), [[16, 4], [81, 9]]),
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Dfact.py9 from math import sqrt
22 limit = sqrt(n+1)
28 limit = sqrt(n+1)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
D_math.c68 return log(2.0*x - 1.0 / (x + sqrt(t - 1.0))); in _Py_acosh()
72 return m_log1p(t + sqrt(2.0*t + t*t)); in _Py_acosh()
104 w = log(2.0*absx + 1.0 / (sqrt(x*x + 1.0) + absx)); in _Py_asinh()
108 w = m_log1p(absx + t / (1.0 + sqrt(1.0 + t))); in _Py_asinh()
Dcmathmodule.c31 #define CM_SQRT_LARGE_DOUBLE (sqrt(CM_LARGE_DOUBLE))
33 #define CM_SQRT_DBL_MIN (sqrt(DBL_MIN))
341 r.real = -log(sqrt(ay)/sqrt(hypot(ay, 2.))); in c_atanh()
714 s = ldexp(sqrt(ax + hypot(ax, ldexp(ay, CM_SCALE_UP))), in c_sqrt()
718 s = 2.*sqrt(ax + hypot(ax, ay/8.)); in c_sqrt()
Dmathmodule.c859 FUNC1(sqrt, sqrt, 0,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
D_math.c68 return log(2.0*x - 1.0 / (x + sqrt(t - 1.0))); in _Py_acosh()
72 return m_log1p(t + sqrt(2.0*t + t*t)); in _Py_acosh()
104 w = log(2.0*absx + 1.0 / (sqrt(x*x + 1.0) + absx)); in _Py_asinh()
108 w = m_log1p(absx + t / (1.0 + sqrt(1.0 + t))); in _Py_asinh()
Dcmathmodule.c31 #define CM_SQRT_LARGE_DOUBLE (sqrt(CM_LARGE_DOUBLE))
33 #define CM_SQRT_DBL_MIN (sqrt(DBL_MIN))
341 r.real = -log(sqrt(ay)/sqrt(hypot(ay, 2.))); in c_atanh()
714 s = ldexp(sqrt(ax + hypot(ax, ldexp(ay, CM_SCALE_UP))), in c_sqrt()
718 s = 2.*sqrt(ax + hypot(ax, ay/8.)); in c_sqrt()
Dmathmodule.c859 FUNC1(sqrt, sqrt, 0,
/device/google/dragon/audio/hal/dsp/
Dbiquad.c53 double d = sqrt((4 - sqrt(16 - 16 / (g * g))) / 2); in biquad_lowpass()
88 double d = sqrt((4 - sqrt(16 - 16 / (g * g))) / 2); in biquad_highpass()
167 sqrt((A + 1 / A) * (1 / S - 1) + 2); in biquad_lowshelf()
169 double k2 = 2 * sqrt(A) * alpha; in biquad_lowshelf()
202 sqrt((A + 1 / A) * (1 / S - 1) + 2); in biquad_highshelf()
204 double k2 = 2 * sqrt(A) * alpha; in biquad_highshelf()
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Dw_sqrt.c26 sqrt(double x) /* wrapper sqrt */ in sqrt() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpymath.c50 return x*sqrt(1.+yx*yx); in hypot()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpymath.c50 return x*sqrt(1.+yx*yx); in hypot()
/device/linaro/bootloader/edk2/StdLib/Include/
Dmath.h280 double sqrt(double Arg);
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DColorWheel.java187 boolean inCenter = java.lang.Math.sqrt(x*x + y*y) <= CENTER_RADIUS; in onTouchEvent()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlmathlib.c107 lua_pushnumber(L, l_mathop(sqrt)(luaL_checknumber(L, 1))); in math_sqrt()
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
Dmath_private.h675 #define __ieee754_sqrt sqrt
/device/linaro/bootloader/edk2/StdLib/LibC/Softfloat/bits32/
Dsoftfloat-macros515 2^31*sqrt(`a'/2^31), where `a' is considered an integer. If bit 0 of `aExp'
516 is 0, the integer returned approximates 2^31*sqrt(`a'/2^30). In either
/device/linaro/bootloader/edk2/ArmPkg/Library/ArmSoftFloatLib/bits32/
Dsoftfloat-macros515 2^31*sqrt(`a'/2^31), where `a' is considered an integer. If bit 0 of `aExp'
516 is 0, the integer returned approximates 2^31*sqrt(`a'/2^30). In either
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Drandom.py46 from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
Drandom.py46 from math import sqrt as _sqrt, acos as _acos, cos as _cos, sin as _sin

12