Home
last modified time | relevance | path

Searched refs:twopi (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/misc/math/fptests/
Dfptest01.c340 static double twopi; variable
346 twopi = 2. * acos((double)-1.0); in gaussinit()
347 u1 = twopi / 400.0; in gaussinit()
348 u2 = twopi / 500.0; in gaussinit()
359 u1 = twopi / 500.0; in gauss()
362 u2 = twopi / 400.0; in gauss()
366 x1 = sqrt(-2.0 * log(u1)) * cos(twopi * u2); in gauss()
370 x2 = sqrt(-2.0 * log(u1)) * sin(twopi * u2); in gauss()
Dfptest02.c321 static double twopi; variable
329 twopi = 2. * acos((double)-1.0); in gaussinit()
341 x1 = sqrt(-2.0 * log(u1)) * cos(twopi * u2); in gauss()
345 x2 = sqrt(-2.0 * log(u1)) * sin(twopi * u2); in gauss()
/external/python/cpython2/Demo/classes/
DComplex.py68 twopi = math.pi*2.0 variable
82 def PolarToComplex(r = 0, phi = 0, fullcircle = twopi):
83 phi = phi * (twopi / fullcircle)
173 def angle(self, fullcircle = twopi):
174 return (fullcircle/twopi) * ((halfpi - math.atan2(self.re, self.im)) % twopi)