Searched refs:pi (Results 1 - 25 of 27) sorted by relevance

12

/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
H A De_atan2f.c28 pi = 3.1415927410e+00; /* 0x40490fdb */ variable
53 case 2: return pi+tiny;/* atan(+0,-anything) = pi */
54 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */
73 case 2: return pi+tiny ; /* atan(+...,-INF) */
74 case 3: return -pi-tiny ; /* atan(-...,-INF) */
92 case 2: return pi-(z-pi_lo);/* atan(+,-) */
94 return (z-pi_lo)-pi;/* atan(-,-) */
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/antlr/
H A Ddumpcycles.c52 int *pi; local
62 for (pi=FoStack[k]; pi <= FoTOS[k]; pi++) {
64 fprintf(stderr,"#%d rule %d %s\n",i,*pi,RulePtr[*pi]->rname);
/device/google/contexthub/firmware/lib/libm/
H A Def_atan2.c28 pi = 3.1415927410e+00, /* 0x40490fdb */ variable
56 case 2: return pi+tiny;/* atan(+0,-anything) = pi */
57 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */
76 case 2: return pi+tiny ; /* atan(+...,-INF) */
77 case 3: return -pi-tiny ; /* atan(-...,-INF) */
97 case 2: return pi-(z-pi_lo);/* atan(+,-) */
99 return (z-pi_lo)-pi;/* atan(-,-) */
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
H A De_atan2.c28 * ARG (x+iy) = pi - arctan[y/(-x)] ... if x < 0,
35 * ATAN2(+-0, -(anything but NaN)) is +-pi ;
36 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2;
38 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi;
39 * ATAN2(+-INF,+INF ) is +-pi/4 ;
40 * ATAN2(+-INF,-INF ) is +-3pi/4;
41 * ATAN2(+-INF, (anything but,0,NaN, and INF)) is +-pi/2;
58 pi = 3.1415926535897931160E+00, /* 0x400921FB, 0x54442D18 */ variable
83 case 2: return pi+tiny;/* atan(+0,-anything) = pi */
[all...]
H A De_acos.c35 * acos(x) = pi/2 - asin(x)
36 * acos(-x) = pi/2 + asin(x)
38 * acos(x) = pi/2 - (x + x*x^2*R(x^2)) (see asin.c)
40 * acos(x) = pi/2 - (pi/2 - 2asin(sqrt((1-x)/2)))
47 * acos(x) = pi - 2asin(sqrt((1-|x|)/2))
48 * = pi - 0.5*(s+s*z*R(z)), where z=(1-|x|)/2,s=sqrt(z)
62 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable
89 else return pi+2.0*pio2_lo; /* acos(-1)= pi */
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
H A Dtest_float.py7 for num in [1617161771.7650001, math.pi, math.pi**100,
8 math.pi**-100, 3.1]:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_cmath.py5 from cmath import phase, polar, rect, pi namespace
117 self.assertAlmostEqual(cmath.pi, pi_expected, places=9,
118 msg="cmath.pi is {}; should be {}".format(cmath.pi, pi_expected))
362 self.assertCISEqual(polar(-1.), (1., pi))
363 self.assertCISEqual(polar(1j), (1., pi/2))
364 self.assertCISEqual(polar(-1j), (1., -pi/2))
369 self.assertAlmostEqual(phase(-1.), pi)
370 self.assertAlmostEqual(phase(-1.+1E-300j), pi)
371 self.assertAlmostEqual(phase(-1.-1E-300j), -pi)
[all...]
H A Dtest_math.py143 self.ftest('pi', math.pi, 3.1415926)
148 self.ftest('acos(-1)', math.acos(-1), math.pi)
149 self.ftest('acos(0)', math.acos(0), math.pi/2)
167 self.ftest('asin(-1)', math.asin(-1), -math.pi/2)
169 self.ftest('asin(1)', math.asin(1), math.pi/2)
185 self.ftest('atan(-1)', math.atan(-1), -math.pi/4)
187 self.ftest('atan(1)', math.atan(1), math.pi/4)
188 self.ftest('atan(inf)', math.atan(INF), math.pi/2)
189 self.ftest('atan(-inf)', math.atan(NINF), -math.pi/
[all...]
H A Dtest_float.py1141 pi = fromHex('0x1.921fb54442d18p1')
1142 self.identical(fromHex('0x.006487ed5110b46p11'), pi)
1143 self.identical(fromHex('0x.00c90fdaa22168cp10'), pi)
1144 self.identical(fromHex('0x.01921fb54442d18p9'), pi)
1145 self.identical(fromHex('0x.03243f6a8885a3p8'), pi)
1146 self.identical(fromHex('0x.06487ed5110b46p7'), pi)
1147 self.identical(fromHex('0x.0c90fdaa22168cp6'), pi)
1148 self.identical(fromHex('0x.1921fb54442d18p5'), pi)
1149 self.identical(fromHex('0x.3243f6a8885a3p4'), pi)
1150 self.identical(fromHex('0x.6487ed5110b46p3'), pi)
[all...]
H A Dtest_minidom.py444 pi = dom.documentElement.firstChild
445 self.confirm(pi.target == "mypi"
446 and pi.data == "data \t\n "
447 and pi.nodeName == "mypi"
448 and pi.nodeType == Node.PROCESSING_INSTRUCTION_NODE
449 and pi.attributes is None
450 and not pi.hasChildNodes()
451 and len(pi.childNodes) == 0
452 and pi.firstChild is None
453 and pi
[all...]
H A Dtest_random.py8 from math import log, exp, pi, fsum, sin namespace
462 def gamma(z, sqrt2pi=(2.0*pi)**0.5):
465 return pi / sin(pi*z) / gamma(1.0-z)
H A Dtest_decimal.py1725 context.create_decimal_from_float(math.pi),
1730 context.create_decimal_from_float(math.pi),
1737 math.pi
H A Dtest_fractions.py556 self.assertAlmostEqual(math.pi, s)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
H A Dtest_float.py7 for num in [1617161771.7650001, math.pi, math.pi**100,
8 math.pi**-100, 3.1]:
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
H A Dpindent.py339 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
340 pi.complete()
345 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
346 pi.delete()
351 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
352 pi.reformat()
402 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
403 pi.complete()
410 pi = PythonIndenter(input, output, stepsize, tabsize, expandtabs)
411 pi
[all...]
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
H A DQsort.c72 TYPE *pi = (TYPE *) (parmi); \
75 TYPE t = *pi; \
76 *pi++ = *pj; \
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
H A Dmorse.py63 val = int(math.sin(math.pi * i * octave / 50.0) * 30000)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
H A Dmathmodule.c1 /* Math module -- standard C math library functions, pi and e */
64 sin(pi*x), giving accurate results for all finite x (especially x
70 static const double pi = 3.141592653589793238462643383279502884197; variable
85 r = sin(pi*y);
88 r = cos(pi*(y-0.5));
91 /* N.B. -sin(pi*(y-1.0)) is *not* equivalent: it would give
93 r = sin(pi*(1.0-y));
96 r = -cos(pi*(y-1.5));
99 r = sin(pi*(y-2.0));
297 r = -pi / sinp
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
H A Dmathmodule.c1 /* Math module -- standard C math library functions, pi and e */
64 sin(pi*x), giving accurate results for all finite x (especially x
70 static const double pi = 3.141592653589793238462643383279502884197; variable
85 r = sin(pi*y);
88 r = cos(pi*(y-0.5));
91 /* N.B. -sin(pi*(y-1.0)) is *not* equivalent: it would give
93 r = sin(pi*(1.0-y));
96 r = -cos(pi*(y-1.5));
99 r = sin(pi*(y-2.0));
297 r = -pi / sinp
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
H A DComplex.py68 twopi = math.pi*2.0
69 halfpi = math.pi/2.0
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
H A Dlcode.c110 Instruction *pi = &fs->f->code[pc]; local
111 if (pc >= 1 && testTMode(GET_OPCODE(*(pi-1))))
112 return pi-1;
114 return pi;
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/xml/etree/
H A DElementTree.py1561 pi = self.target.pi
1565 return pi(self._fixtext(target), self._fixtext(data))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/etree/
H A DElementTree.py1543 pi = self.target.pi
1547 return pi(self._fixtext(target), self._fixtext(data))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A Drandom.py25 distributions on the circle (angles 0 to 2pi)
45 from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
445 mu is the mean angle, expressed in radians between 0 and 2*pi, and
448 to a uniform random angle over the range 0 to 2*pi.
451 # mu: mean angle (in radians between 0 and 2*pi)
575 # cos(2*pi*x)*sqrt(-2*log(1-y))
576 # sin(2*pi*x)*sqrt(-2*log(1-y))
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Drandom.py25 distributions on the circle (angles 0 to 2pi)
45 from math import log as _log, exp as _exp, pi as _pi, e as _e, ceil as _ceil
441 mu is the mean angle, expressed in radians between 0 and 2*pi, and
444 to a uniform random angle over the range 0 to 2*pi.
447 # mu: mean angle (in radians between 0 and 2*pi)
573 # cos(2*pi*x)*sqrt(-2*log(1-y))
574 # sin(2*pi*x)*sqrt(-2*log(1-y))

Completed in 152 milliseconds

12