Home
last modified time | relevance | path

Searched refs:atan2 (Results 1 – 19 of 19) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_math.py204 self.assertRaises(TypeError, math.atan2)
205 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
206 self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
207 self.ftest('atan2(0, 1)', math.atan2(0, 1), 0)
208 self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
209 self.ftest('atan2(1, 0)', math.atan2(1, 0), math.pi/2)
212 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
213 self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi)
214 self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi)
215 self.assertEqual(math.atan2(0., 0.), 0.)
[all …]
Dtest_complex.py5 from math import atan2, isnan, copysign
290 return atan2(x, -1.)
504 self.assertEqual(atan2(z1.imag, -1.), atan2(0., -1.))
505 self.assertEqual(atan2(z2.imag, -1.), atan2(-0., -1.))
Dtest_float.py531 return 0.0, math.atan2(0.0, -1)
533 return 0.0, math.atan2(-0.0, -1)
535 return -0.0, math.atan2(0.0, -1)
537 return -0.0, math.atan2(-0.0, -1)
544 self.assertEqual(math.atan2(-1e-1000, -1), math.atan2(-0.0, -1))
545 self.assertEqual(math.atan2(float('-1e-1000'), -1),
546 math.atan2(-0.0, -1))
Dcmath_testcases.txt2323 -- are defined in terms of the functions hypot and atan2).
/device/google/contexthub/firmware/lib/libm/
Dwf_atan2.c37 double atan2(double y, double x) in atan2() function
39 double atan2(y,x) in atan2()
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Dw_atan2.c27 atan2(double y, double x) /* wrapper atan2 */ in atan2() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dpymath.c60 if (y > 0. || (y == 0. && atan2(y, -1.) > 0.)) { in copysign()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Python/
Dpymath.c60 if (y > 0. || (y == 0. && atan2(y, -1.) > 0.)) { in copysign()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dcmathmodule.c135 r.real = atan2(fabs(z.imag), z.real); in c_acos()
152 r.real = 2.*atan2(s1.real, s2.real); in c_acos()
177 r.imag = atan2(z.imag, z.real); in c_acosh()
186 r.imag = 2.*atan2(s1.imag, s2.real); in c_acosh()
234 r.imag = atan2(z.imag, fabs(z.real)); in c_asinh()
243 r.imag = atan2(z.imag, s1.real*s2.real-s1.imag*s2.imag); in c_asinh()
295 return atan2(z.imag, z.real); in c_atan2()
342 r.imag = copysign(atan2(2., -ay)/2, z.imag); in c_atanh()
347 r.imag = -atan2(-2.*z.imag, (1-z.real)*(1+z.real) - ay*ay)/2.; in c_atanh()
547 r.imag = atan2(z.imag, z.real); in c_log()
[all …]
Dmathmodule.c557 return atan2(y, x); in m_atan2()
819 FUNC2(atan2, m_atan2,
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dcmathmodule.c135 r.real = atan2(fabs(z.imag), z.real); in c_acos()
152 r.real = 2.*atan2(s1.real, s2.real); in c_acos()
177 r.imag = atan2(z.imag, z.real); in c_acosh()
186 r.imag = 2.*atan2(s1.imag, s2.real); in c_acosh()
234 r.imag = atan2(z.imag, fabs(z.real)); in c_asinh()
243 r.imag = atan2(z.imag, s1.real*s2.real-s1.imag*s2.imag); in c_asinh()
295 return atan2(z.imag, z.real); in c_atan2()
342 r.imag = copysign(atan2(2., -ay)/2, z.imag); in c_atanh()
347 r.imag = -atan2(-2.*z.imag, (1-z.real)*(1+z.real) - ay*ay)/2.; in c_atanh()
547 r.imag = atan2(z.imag, z.real); in c_log()
[all …]
Dmathmodule.c557 return atan2(y, x); in m_atan2()
819 FUNC2(atan2, m_atan2,
/device/linaro/bootloader/edk2/StdLib/Include/
Dmath.h140 double atan2(double Num, double Denom);
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/
DColorWheel.java204 float angle = (float)java.lang.Math.atan2(y, x); in onTouchEvent()
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlmathlib.c77 lua_pushnumber(L, l_mathop(atan2)(luaL_checknumber(L, 1), in math_atan2()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DComplex.py174 return (fullcircle/twopi) * ((halfpi - math.atan2(self.re, self.im)) % twopi)
/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
Dmath_private.h682 #define __ieee754_atan2 atan2
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dcomplexobject.c141 at = atan2(a.imag, a.real); in c_pow()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dcomplexobject.c145 at = atan2(a.imag, a.real); in c_pow()