| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/math/ |
| H A D | algebraic.d | 186 float sqrt(float x) @nogc @safe pure nothrow { return core.math.sqrt(x); } in pragma() 190 double sqrt(double x) @nogc @safe pure nothrow { return core.math.sqrt(x); } in pragma() 194 real sqrt(real x) @nogc @safe pure nothrow { return core.math.sqrt(x); } in pragma() 202 assert(sqrt(2.0).feqrel(1.4142) > 16); 203 assert(sqrt(9.0).feqrel(3.0) > 16); 205 assert(isNaN(sqrt(-1.0f))); 206 assert(isNaN(sqrt(-1.0))); 207 assert(isNaN(sqrt(-1.0L))); 213 float function(float) psqrtf = &sqrt; 215 double function(double) psqrtd = &sqrt; [all …]
|
| H A D | trigonometry.d | 202 import std.math.algebraic : sqrt; 206 assert(tan(PI / 3).isClose(sqrt(3.0))); 519 import std.math.algebraic : sqrt; 520 assert(isClose(tan(PI / 3), sqrt(3.0L), real.sizeof > double.sizeof ? 1e-15 : 1e-14)); 560 import core.math : sqrt; in acos() 562 return atan2(sqrt(1-x*x), x); in acos() 604 import core.math : sqrt; in asin() 606 return atan2(x, sqrt(1-x*x)); in asin() 670 import std.math.algebraic : sqrt; 673 assert(atan(sqrt(3.0)).isClose(PI / 3)); [all …]
|
| /netbsd-src/lib/libm/complex/ |
| H A D | csqrt.c | 53 r = sqrt(-x); in csqrt() 56 r = sqrt(x); in csqrt() 64 r = sqrt(0.5 * y); in csqrt() 67 r = sqrt(-0.5 * y); in csqrt() 91 t = sqrt(0.5 * r + 0.5 * x); in csqrt() 95 r = sqrt(0.5 * r - 0.5 * x); in csqrt()
|
| H A D | catrig.c | 205 *rx = sqrt(x); in do_hard_work() 212 *rx = log1p(Am1 + sqrt(Am1 * (A + 1))); in do_hard_work() 218 *rx = x / sqrt((1 - y) * (1 + y)); in do_hard_work() 223 *rx = log1p((y - 1) + sqrt((y - 1) * (y + 1))); in do_hard_work() 226 *rx = log(A + sqrt(A * A - 1)); in do_hard_work() 258 *sqrt_A2my2 = sqrt(x) * sqrt((A + y) / 2); in do_hard_work() 267 *sqrt_A2my2 = sqrt(Amy * (A + y)); in do_hard_work() 277 sqrt((y + 1) * (y - 1)); in do_hard_work() 284 *sqrt_A2my2 = sqrt((1 - y) * (1 + y)); in do_hard_work()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/std/ |
| H A D | numbers | 82 /// 1/sqrt(pi) 97 /// sqrt(2) 102 /// sqrt(3) 107 /// 1/sqrt(3) 117 /// The golden ratio, (1+sqrt(5))/2 161 /// 1/sqrt(pi) 176 /// sqrt(2) 181 /// sqrt(3) 186 /// 1/sqrt(3) 196 /// The golden ratio, (1+sqrt(5))/2
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/ |
| H A D | numbers | 82 /// 1/sqrt(pi) 97 /// sqrt(2) 102 /// sqrt(3) 107 /// 1/sqrt(3) 117 /// The golden ratio, (1+sqrt(5))/2 161 /// 1/sqrt(pi) 176 /// sqrt(2) 181 /// sqrt(3) 186 /// 1/sqrt(3) 196 /// The golden ratio, (1+sqrt(5))/2
|
| /netbsd-src/external/lgpl3/mpc/dist/tests/ |
| H A D | sqrt.dat | 75 # sqrt(x +i*0) = sqrt(x) +i*0, when x>0 76 # sqrt(x -i*0) = sqrt(x) -i*0, when x>0 77 # sqrt(x +i*0) = +0 +i*sqrt(-x) +i*0, when x<0 78 # sqrt(x -i*0) = +0 -i*sqrt(-x) +i*0, when x<0 102 # sqrt(+/-0 +i*y) = sqrt(y/2) * (1 +i), when y >0 103 # sqrt(+/-0 +i*y) = sqrt(-y/2) * (1 -i), when y < 0
|
| /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/sh/ |
| H A D | fsqrt.s | 11 # sqrt(0.0) = 0.0. 19 # sqrt(1.0) = 1.0. 27 # sqrt(4.0) = 2.0 63 # sqrt(0.0) = 0.0. 73 # sqrt(1.0) = 1.0. 83 # sqrt(4.0) = 2.0.
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/tr1/ |
| H A D | legendre_function.tcc | 155 _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); in __assoc_legendre_p() 228 _Tp __fact = std::sqrt(_Tp(2 * __l + 1) in __sph_legendre() 246 const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); in __sph_legendre() 263 const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) in __sph_legendre() 281 const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) in __sph_legendre() 283 const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) in __sph_legendre()
|
| H A D | ell_integral.tcc | 119 const _Tp __xnroot = std::sqrt(__xn); in __ellint_rf() 120 const _Tp __ynroot = std::sqrt(__yn); in __ellint_rf() 121 const _Tp __znroot = std::sqrt(__zn); in __ellint_rf() 134 return __s / std::sqrt(__mu); in __ellint_rf() 361 _Tp __xnroot = std::sqrt(__xn); in __ellint_rd() 362 _Tp __ynroot = std::sqrt(__yn); in __ellint_rd() 363 _Tp __znroot = std::sqrt(__zn); in __ellint_rd() 386 / (__mu * std::sqrt(__mu)); in __ellint_rd() 531 const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) in __ellint_rc() 540 return (_Tp(1) + __s) / std::sqrt(__mu); in __ellint_rc() [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/tr1/ |
| H A D | legendre_function.tcc | 155 _Tp __root = std::sqrt(_Tp(1) - __x) * std::sqrt(_Tp(1) + __x); in __assoc_legendre_p() 228 _Tp __fact = std::sqrt(_Tp(2 * __l + 1) in __sph_legendre() 246 const _Tp __y_mp1m_factor = __x * std::sqrt(_Tp(2 * __m + 3)); in __sph_legendre() 263 const _Tp __sr = std::sqrt((_Tp(2) + _Tp(1) / __m) in __sph_legendre() 281 const _Tp __fact1 = std::sqrt(__rat1 * _Tp(2 * __ll + 1) in __sph_legendre() 283 const _Tp __fact2 = std::sqrt(__rat1 * __rat2 * _Tp(2 * __ll + 1) in __sph_legendre()
|
| H A D | ell_integral.tcc | 117 const _Tp __xnroot = std::sqrt(__xn); in __ellint_rf() 118 const _Tp __ynroot = std::sqrt(__yn); in __ellint_rf() 119 const _Tp __znroot = std::sqrt(__zn); in __ellint_rf() 132 return __s / std::sqrt(__mu); in __ellint_rf() 357 _Tp __xnroot = std::sqrt(__xn); in __ellint_rd() 358 _Tp __ynroot = std::sqrt(__yn); in __ellint_rd() 359 _Tp __znroot = std::sqrt(__zn); in __ellint_rd() 382 / (__mu * std::sqrt(__mu)); in __ellint_rd() 525 const _Tp __lambda = _Tp(2) * std::sqrt(__xn) * std::sqrt(__yn) in __ellint_rc() 534 return (_Tp(1) + __s) / std::sqrt(__mu); in __ellint_rc() [all …]
|
| /netbsd-src/external/bsd/ntp/dist/scripts/stats/ |
| H A D | clock.awk | 318 arb_rms = sqrt(arb_rms / arbn - arb_mean * arb_mean) 319 arb_var = sqrt(arb_var / (2 * (arbn - 1))) 337 ensemble_rms = sqrt(ensemble_rms / ensemble_count - ensemble_mean * ensemble_mean) * 1e9 394 itf_rms = sqrt(itf_rms / itf_count - itf_mean * itf_mean) * 1e9 395 itf_var = sqrt(itf_var / (2 * (itf_count - 1))) 410 etf_rms = sqrt(etf_rms / etf_count - etf_mean * etf_mean) 411 etf_var = sqrt(etf_var / (2 * (etf_count - 1)))
|
| /netbsd-src/external/historical/nawk/dist/testdir/ |
| H A D | t.j.x | 1 {i=i+sqrt($1); print i,sqrt($1)} 2 END {print sqrt(i),i}
|
| H A D | t.builtins | 4 sqrt($1), 5 int(sqrt($1)),
|
| /netbsd-src/lib/libm/arch/vax/ |
| H A D | n_sqrt.S | 36 WEAK_ALIAS(_sqrtl, sqrt) 37 WEAK_ALIAS(sqrtl, sqrt) 58 ENTRY(sqrt, 0x003c) # save %r5,%r4,%r3,%r2 65 END(sqrt) 130 calls $2,_C_LABEL(sqrt)
|
| /netbsd-src/lib/libm/noieee_src/ |
| H A D | n_asincos.c | 109 return(atan2(x,sqrt(one-x*x))); in __weak_alias() 111 { t=one-s; s=t+t; return(atan2(x,sqrt(s-t*t))); } in __weak_alias() 181 t=atan2(sqrt((one-x)/(one+x)),one); in acos()
|
| H A D | n_j1.c | 176 z = (invsqrtpi*cc)/sqrt(y); in j1() 181 z = invsqrtpi*(u*cc-v*ss)/sqrt(y); in j1() 262 z = (invsqrtpi*ss)/sqrt(x); in y1() 267 z = invsqrtpi*(u*ss+v*cc)/sqrt(x); in y1()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/ext/ |
| H A D | cmath | 60 // Constant @f$ \sqrt(\pi / 2) @f$. 66 // Constant @f$ 2 / \sqrt(\pi) @f$. 89 // Constant @f$ \sqrt(2) @f$. 91 // Constant @f$ \sqrt(3) @f$. 93 // Constant @f$ \sqrt(5) @f$. 95 // Constant @f$ \sqrt(7) @f$. 97 // Constant @f$ 1 / \sqrt(2) @f$.
|
| /netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/ext/ |
| H A D | cmath | 60 // Constant @f$ \sqrt(\pi / 2) @f$. 66 // Constant @f$ 2 / \sqrt(\pi) @f$. 89 // Constant @f$ \sqrt(2) @f$. 91 // Constant @f$ \sqrt(3) @f$. 93 // Constant @f$ \sqrt(5) @f$. 95 // Constant @f$ \sqrt(7) @f$. 97 // Constant @f$ 1 / \sqrt(2) @f$.
|
| /netbsd-src/tests/lib/libm/ |
| H A D | t_sqrt.c | 53 ATF_CHECK(isnan(sqrt(x)) != 0); in ATF_TC_BODY() 69 double x_sqrt = sqrt(x[i]); in ATF_TC_BODY() 96 double y = sqrt(x); in ATF_TC_BODY() 110 double y = sqrt(x); in ATF_TC_BODY() 125 double y = sqrt(x); in ATF_TC_BODY() 140 double y = sqrt(x); in ATF_TC_BODY()
|
| /netbsd-src/external/lgpl3/gmp/dist/tests/cxx/ |
| H A D | t-ops2f.cc | 23 ASSERT_ALWAYS(sqrt(mpf_class(7))>2.64); in checkf() 24 ASSERT_ALWAYS(sqrt(mpf_class(7))<2.65); in checkf() 25 ASSERT_ALWAYS(sqrt(mpf_class(0))==0); in checkf()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libphobos/src/std/ |
| H A D | complex.d | 710 assert(abs(complex(1.0L, -2.0L)) == std.math.sqrt(5.0L)); 811 auto z = fromPolar(std.math.sqrt(2.0), PI_4); 896 Complex!T sqrt(T)(Complex!T z) @safe pure nothrow @nogc 916 w = std.math.sqrt(x) 917 * std.math.sqrt(0.5 * (1 + std.math.sqrt(1 + r * r))); 922 w = std.math.sqrt(y) 923 * std.math.sqrt(0.5 * (r + std.math.sqrt(1 + r * r))); 944 assert(sqrt(complex(0.0)) == 0.0); 945 assert(sqrt(complex(1.0L, 0)) == std.math.sqrt(1.0L)); 946 assert(sqrt(complex(-1.0L, 0)) == complex(0, 1.0L)); [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libphobos/src/std/ |
| H A D | complex.d | 753 assert(abs(complex(1.0L, -2.0L)) == core.math.sqrt(5.0L)); 761 assert(abs(complex(-1.0L, 1.0L)) == core.math.sqrt(2.0L)); 936 import std.math.algebraic : sqrt; 938 auto z = fromPolar(core.math.sqrt(2.0), PI_4); 1108 assert(isClose(atan(sqrt(complex(3.0L))), PI / 3)); 1109 assert(isClose(atan(sqrt(complex(3.0f))), float(PI) / 3)); 1176 return log(sqrt(t) + z); 1192 return 2 * log(sqrt(T(0.5) * (z + 1)) + sqrt(T(0.5) * (z - 1))); 1286 Complex!T sqrt(T)(Complex!T z) @safe pure nothrow @nogc 1306 w = core.math.sqrt(x) [all …]
|
| /netbsd-src/lib/libm/src/ |
| H A D | w_sqrt.c | 27 __strong_alias(_sqrtl, sqrt) in __strong_alias() argument 32 sqrt(double x) /* wrapper sqrt */ in __strong_alias()
|