/haiku/src/add-ons/screen_savers/flurry/ |
H A D | Texture.cpp | 102 float r = (float)sqrt((i - 15.5) * (i - 15.5) + (j - 15.5) 116 float r = (float)sqrt((i - 15.5) * (i - 15.5) + (j - 15.5)
|
/haiku/src/libs/mapm/ |
H A D | mapmgues.c | 25 * 'guesses' for the sqrt, cbrt, log, arcsin, and arccos functions. 63 * guess 1/sqrt instead of sqrt due to new sqrt algorithm 81 * added new sqrt guess function 99 dd = atof(buf); /* sqrt algorithm actually finds 1/sqrt */ 100 m_apm_set_double(r, (1.0 / sqrt(dd)));
|
/haiku/src/system/libroot/posix/musl/math/ |
H A D | asin.c | 23 * asin(x) = pi/2-2*asin(sqrt((1-x)/2)) 24 * Let y = (1-x), z = y/2, s := sqrt(z), and pio2_hi+pio2_lo=pi/2; 30 * c = sqrt(z) - f = (z-f*f)/(s+f) ...f+c=sqrt(z) 92 s = sqrt(z); 98 /* f+c = sqrt(z) */
|
H A D | hypot.c | 52 /* precise sqrt argument in nearest rounding mode without overflow */ 66 return z*sqrt(ly+lx+hy+hx);
|
H A D | sqrt.c | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(Na 83 double sqrt(double x) function [all...] |
H A D | jn.c | 77 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) 78 * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) 80 * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then 96 b = invsqrtpi*temp/sqrt(x); 246 * Jn(x) = cos(x-(2n+1)*pi/4)*sqrt(2/x*pi) 247 * Yn(x) = sin(x-(2n+1)*pi/4)*sqrt(2/x*pi) 249 * xn=x-(2n+1)*pi/4, sqt2 = sqrt(2),then 265 b = invsqrtpi*temp/sqrt(x);
|
H A D | j0.c | 21 * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)-q0(x)*sin(x0)) 25 * = 1/sqrt(2) * (cos(x) + sin(x)) 27 * = 1/sqrt(2) * (sin(x) - cos(x)) 51 * y0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x0)+q0(x)*sin(x0)) 71 * j0(x) = sqrt(2/(pi*x))*(p0(x)*cos(x-pi/4)-q0(x)*sin(x-pi/4)) 72 * y0(x) = sqrt(2/(pi*x))*(p0(x)*sin(x-pi/4)+q0(x)*cos(x-pi/4)) 74 * sin(x-pi/4) = (sin(x) - cos(x))/sqrt(2) 75 * cos(x-pi/4) = (sin(x) + cos(x))/sqrt(2) 97 return invsqrtpi*cc/sqrt(x);
|
H A D | j1.c | 21 * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x1)-q1(x)*sin(x1)) 22 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 26 * = 1/sqrt(2) * (sin(x) - cos(x)) 28 * = -1/sqrt(2) * (sin(x) + cos(x)) 52 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x1)+q1(x)*cos(x1)) 70 * j1(x) = sqrt(2/(pi*x))*(p1(x)*cos(x-3pi/4)-q1(x)*sin(x-3pi/4)) 71 * y1(x) = sqrt(2/(pi*x))*(p1(x)*sin(x-3pi/4)+q1(x)*cos(x-3pi/4)) 73 * sin(x-3pi/4) = -(sin(x) + cos(x))/sqrt(2) 74 * cos(x-3pi/4) = (sin(x) - cos(x))/sqrt(2) 98 return invsqrtpi*cc/sqrt( [all...] |
/haiku/headers/cpp/std/ |
H A D | complext.cc | 253 sqrt (const complex<FLOAT>& x) function 261 nr = sqrt (0.5 * (r + real (x))); 266 ni = sqrt (0.5 * (r - real (x)));
|
/haiku/src/apps/cortex/DiagramView/ |
H A D | DiagramWire.cpp | 146 length = sqrt(pow(b.x - a.x, 2) + pow(b.y - a.y, 2));
|
/haiku/src/libs/stdc++/legacy/ |
H A D | cinst.cc | 147 template c sqrt (ccr);
|
/haiku/src/libs/agg/src/ |
H A D | agg_curves.cpp | 58 double len = sqrt(dx1 * dx1 + dy1 * dy1) + sqrt(dx2 * dx2 + dy2 * dy2); 278 double len = (sqrt(dx1 * dx1 + dy1 * dy1) + 279 sqrt(dx2 * dx2 + dy2 * dy2) + 280 sqrt(dx3 * dx3 + dy3 * dy3)) * 0.25 * m_scale;
|
/haiku/headers/libs/agg/ |
H A D | agg_math.h | 61 return sqrt(dx * dx + dy * dy); 79 double d = sqrt(dx * dx + dy * dy); 184 double d = sqrt(dx*dx + dy*dy); 250 // Tables for fast sqrt 325 //This is calculation sqrt itself.
|
H A D | agg_image_filters.h | 202 return bessel_i0(a * sqrt(1. - x * x)) * i0a; 303 return exp(-2.0 * x * x) * sqrt(2.0 / pi);
|
/haiku/src/apps/glteapot/ |
H A D | Quaternion.h | 170 return sqrt(length2());
209 float s = sqrt(length2() * q.length2());
391 float s = sqrt((1.0f + d) * 2.0f);
|
H A D | Vector3.h | 117 return sqrt(length2());
141 float s = sqrt(length2() * v.length2());
|
/haiku/src/apps/haiku3d/ |
H A D | Quaternion.h | 177 return sqrt(length2()); 216 float s = sqrt(length2() * q.length2()); 399 float s = sqrt((1.0f + d) * 2.0f);
|
H A D | Vector3.h | 128 return sqrt(length2()); 152 float s = sqrt(length2() * v.length2());
|
/haiku/src/apps/icon-o-matic/generic/support/ |
H A D | support.cpp | 27 return ((x - x2) * dy - (y - y2) * dx) / sqrt(dx * dx + dy * dy);
|
/haiku/src/preferences/input/ |
H A D | SettingsView.cpp | 197 value = int32(sqrt(fSettings.AccelerationFactor() / 16384.0) * 1000 / 4);
|
/haiku/src/bin/network/ping/ |
H A D | main.c | 251 double stddev = sqrt(fmax(0, tsumsq / num - avg * avg));
|
/haiku/src/kits/interface/ |
H A D | AffineTransform.cpp | 615 return sqrt(x * x + y * y); 643 *_sx = sqrt(sx * sx + shx * shx); 645 *_sy = sqrt(shy * shy + sy * sy);
|
/haiku/src/system/libroot/posix/glibc/math/bits/ |
H A D | mathcalls.h | 146 __MATHCALL (sqrt,, (_Mdouble_ __x)); 149 /* Return `sqrt(X*X + Y*Y)'. */
|
/haiku/headers/libs/mapm/ |
H A D | m_apm.h | 543 MAPM_1aryFunc(sqrt) 628 MAPM_1aryFunc(sqrt)
|
/haiku/src/kits/shared/ |
H A D | ExpressionParser.cpp | 697 } else if (strcasecmp("sqrt", token.string.String()) == 0) { 702 return _ParseFactorial(values[0].sqrt()); 760 * (MAPM(2) * MAPM(MM_PI) * value).sqrt()
|