Home
last modified time | relevance | path

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

/third_party/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()
/third_party/flutter/glfw/examples/
Dsplitview.c62 double s, t, x, y, z, nx, ny, nz, scale, twopi; in drawTorus() local
71 twopi = 2.0 * M_PI; in drawTorus()
83 …x = (TORUS_MAJOR + TORUS_MINOR * cos(s * twopi / TORUS_MINOR_RES)) * cos(t * twopi / TORUS_MAJOR_R… in drawTorus()
84 y = TORUS_MINOR * sin(s * twopi / TORUS_MINOR_RES); in drawTorus()
85 …z = (TORUS_MAJOR + TORUS_MINOR * cos(s * twopi / TORUS_MINOR_RES)) * sin(t * twopi / TORUS_MAJOR_R… in drawTorus()
88 nx = x - TORUS_MAJOR * cos(t * twopi / TORUS_MAJOR_RES); in drawTorus()
90 nz = z - TORUS_MAJOR * sin(t * twopi / TORUS_MAJOR_RES); in drawTorus()