Searched refs:twopi (Results 1 – 3 of 3) sorted by relevance
340 static double twopi; variable346 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()
321 static double twopi; variable329 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()
68 twopi = math.pi*2.0 variable82 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)