Home
last modified time | relevance | path

Searched refs:pi (Results 1 – 25 of 32) sorted by relevance

12

/device/google/contexthub/firmware/external/freebsd/lib/msun/src/
De_atan2f.c28 pi = 3.1415927410e+00; /* 0x40490fdb */ variable
53 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in __ieee754_atan2f()
54 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in __ieee754_atan2f()
73 case 2: return pi+tiny ; /* atan(+...,-INF) */ in __ieee754_atan2f()
74 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in __ieee754_atan2f()
92 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2f()
94 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2f()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_cmath.py5 from cmath import phase, polar, rect, pi
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)
372 self.assertAlmostEqual(phase(1j), pi/2)
[all …]
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/2)
205 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
[all …]
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 …]
Dieee754.txt7 >>> PI = pi
160 Neither pi nor tan are exact, but you can assume that tan(pi/2) is a large value
161 and tan(pi) is a very small value:
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.lastChild is None
[all …]
Dtest_random.py8 from math import log, exp, pi, fsum, sin
462 def gamma(z, sqrt2pi=(2.0*pi)**0.5):
465 return pi / sin(pi*z) / gamma(1.0-z)
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
De_atan2.c58 pi = 3.1415926535897931160E+00, /* 0x400921FB, 0x54442D18 */ variable
83 case 2: return pi+tiny;/* atan(+0,-anything) = pi */ in __ieee754_atan2()
84 case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */ in __ieee754_atan2()
103 case 2: return pi+tiny ; /* atan(+...,-INF) */ in __ieee754_atan2()
104 case 3: return -pi-tiny ; /* atan(-...,-INF) */ in __ieee754_atan2()
124 case 2: return pi-(z-pi_lo);/* atan(+,-) */ in __ieee754_atan2()
126 return (z-pi_lo)-pi;/* atan(-,-) */ in __ieee754_atan2()
De_acos.c62 pi = 3.14159265358979311600e+00, /* 0x400921FB, 0x54442D18 */ variable
89 else return pi+2.0*pio2_lo; /* acos(-1)= pi */ in __ieee754_acos()
108 return pi - 2.0*(s+w); in __ieee754_acos()
/device/google/contexthub/firmware/lib/libm/
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/BaseTools/Source/C/VfrCompile/Pccts/antlr/
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/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/tests/
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/
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.delete()
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/
Dtest_float.py7 for num in [1617161771.7650001, math.pi, math.pi**100,
8 math.pi**-100, 3.1]:
/device/linaro/bootloader/edk2/StdLib/LibC/StdLib/
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/
DREADME16 pi.py Print all digits of pi -- given enough time and memory
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/
Dmathmodule.c70 static const double pi = 3.141592653589793238462643383279502884197; variable
85 r = sin(pi*y); in sinpi()
88 r = cos(pi*(y-0.5)); in sinpi()
93 r = sin(pi*(1.0-y)); in sinpi()
96 r = -cos(pi*(y-1.5)); in sinpi()
99 r = sin(pi*(y-2.0)); in sinpi()
297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
369 r = log(pi) - log(fabs(sinpi(absx))) - log(absx) - in m_lgamma()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dmathmodule.c70 static const double pi = 3.141592653589793238462643383279502884197; variable
85 r = sin(pi*y); in sinpi()
88 r = cos(pi*(y-0.5)); in sinpi()
93 r = sin(pi*(1.0-y)); in sinpi()
96 r = -cos(pi*(y-1.5)); in sinpi()
99 r = sin(pi*(y-2.0)); in sinpi()
297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma()
369 r = log(pi) - log(fabs(sinpi(absx))) - log(absx) - in m_lgamma()
/device/google/dragon/audio/hal/dsp/tests/
Dplot_fftl.m34 semilogx(NQ*(1:K)/K,180/pi*unwrap(angle(fr)));
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/classes/
DComplex.py68 twopi = math.pi*2.0
69 halfpi = math.pi/2.0
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpdb.doc192 #Print instance variables (usage "pi classInst")
193 alias pi for k in %1.__dict__.keys(): print "%1.",k,"=",%1.__dict__[k]
195 alias ps pi self
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlcode.c110 Instruction *pi = &fs->f->code[pc]; in getjumpcontrol() local
111 if (pc >= 1 && testTMode(GET_OPCODE(*(pi-1)))) in getjumpcontrol()
112 return pi-1; in getjumpcontrol()
114 return pi; in getjumpcontrol()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/xml/etree/
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/xml/etree/
DElementTree.py1561 pi = self.target.pi
1565 return pi(self._fixtext(target), self._fixtext(data))

12