Home
last modified time | relevance | path

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

/third_party/ltp/testcases/misc/math/fptests/
H A 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()
H A 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/glfw/examples/
H A Dsplitview.c64 double s, t, x, y, z, nx, ny, nz, scale, twopi; in drawTorus() local
73 twopi = 2.0 * M_PI; in drawTorus()
85 x = (TORUS_MAJOR + TORUS_MINOR * cos(s * twopi / TORUS_MINOR_RES)) * cos(t * twopi / TORUS_MAJOR_RES); in drawTorus()
86 y = TORUS_MINOR * sin(s * twopi / TORUS_MINOR_RES); in drawTorus()
87 z = (TORUS_MAJOR + TORUS_MINOR * cos(s * twopi / TORUS_MINOR_RES)) * sin(t * twopi / TORUS_MAJOR_RES); in drawTorus()
90 nx = x - TORUS_MAJOR * cos(t * twopi / TORUS_MAJOR_RES); in drawTorus()
92 nz = z - TORUS_MAJOR * sin(t * twopi / TORUS_MAJOR_RES); in drawTorus()

Completed in 3 milliseconds