/macosx-10.10/JavaScriptCore-7600.1.17/tests/stress/ |
H A D | fiat-double-to-int52-then-fail-to-fold.js | 2 return fiatInt52(Math.sqrt(2)) + 1; 9 if (result != Math.sqrt(2) + 1)
|
H A D | ftl-arithsqrt.js | 2 return Math.sqrt(x);
|
/macosx-10.10/tcl-105/tcl_ext/tbcload/tbcload/tests/tcl/ |
H A D | expr.tcl | 16 # the "expr sqrt(16)" part generates the exception range, because that code 20 set result [expr int(10 * [expr sqrt(16)])]
|
H A D | expr1.tcl | 21 set result [expr int(10 * [expr sqrt([llength $l])])]
|
/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Math/ |
H A D | 15.8.2.17.js | 24 ECMA Section: 15.8.2.17 Math.sqrt(x) 39 var TITLE = "Math.sqrt(x)"; 50 array[item++] = new TestCase( SECTION, "Math.sqrt.length", 1, Math.sqrt.length ); 52 array[item++] = new TestCase( SECTION, "Math.sqrt()", Number.NaN, Math.sqrt() ); 53 array[item++] = new TestCase( SECTION, "Math.sqrt(void 0)", Number.NaN, Math.sqrt(void 0) ); 54 array[item++] = new TestCase( SECTION, "Math.sqrt(null)", 0, Math.sqrt(nul [all...] |
/macosx-10.10/ruby-106/ruby/test/ |
H A D | test_cmath.rb | 6 assert_equal CMath.sqrt(1.0.i), CMath.sqrt(1.i), '[ruby-core:31672]'
|
/macosx-10.10/ruby-106/ruby/test/bigdecimal/ |
H A D | test_bigmath.rb | 18 assert_in_delta(2**0.5, sqrt(BigDecimal("2"), N)) 19 assert_equal(10, sqrt(BigDecimal("100"), N)) 20 assert_equal(0.0, sqrt(BigDecimal("0"), N)) 21 assert_equal(0.0, sqrt(BigDecimal("-0"), N)) 22 assert_raise(FloatDomainError) {sqrt(BigDecimal("-1.0"), N)} 23 assert_raise(FloatDomainError) {sqrt(NAN, N)} 24 assert_raise(FloatDomainError) {sqrt(PINF, N)} 29 assert_in_delta(Math.sqrt(2.0) / 2, sin(PI(N) / 4, N)) 43 assert_in_delta(Math.sqrt(2.0) / 2, cos(PI(N) / 4, N)) 58 assert_in_delta(Math::PI/6, atan(sqrt(BigDecima [all...] |
/macosx-10.10/ruby-106/ruby/lib/ |
H A D | mathn.rb | 204 # Math.sqrt(4/9) # => 0.0 205 # Math.sqrt(4.0/9.0) # => 0.666666666666667 206 # Math.sqrt(- 4/9) # => Errno::EDOM: Numerical argument out of domain - sqrt 211 # Math.sqrt(4/9) # => 2/3 212 # Math.sqrt(4.0/9.0) # => 0.666666666666667 213 # Math.sqrt(- 4/9) # => Complex(0, 2/3) 216 remove_method(:sqrt) 222 # Math.sqrt(4/9) # => 2/3 223 # Math.sqrt( 226 def sqrt(a) method in class:Math [all...] |
H A D | cmath.rb | 15 # CMath.sqrt(-9) #=> 0+3.0i 26 alias sqrt! sqrt 121 # sqrt(-1) #=> 0+1.0i 122 # sqrt(Complex(-1,0)) #=> 0.0+1.0i 123 # sqrt(Complex(0,8)) #=> 2.0+2.0i 124 def sqrt(z) method in class:CMath 128 Complex(0, sqrt!(-z)) 130 sqrt!(z) 135 sqrt( [all...] |
/macosx-10.10/groff-38/groff/src/libs/libgroff/ |
H A D | prime.cpp | 11 unsigned lim = unsigned(sqrt((double)n));
|
/macosx-10.10/ntp-92/scripts/stats/ |
H A D | loop.awk | 39 loop_time_rms = sqrt(loop_time_rms / loop_count - loop_time * loop_time) 41 loop_freq_rms = sqrt(loop_freq_rms / loop_count - loop_freq * loop_freq)
|
/macosx-10.10/ruby-106/ruby/missing/ |
H A D | hypot.c | 16 return x * sqrt(1.0+y*y);
|
H A D | acosh.c | 45 x += sqrt((x + 1) * (x - 1)); 66 z = log(z + sqrt(z * z + 1));
|
/macosx-10.10/ksh-23/ksh/src/lib/libast/uwin/ |
H A D | acosh.c | 49 * sqrt(x) 56 * acosh(x) = log [ x + sqrt(x*x-1) ] 59 * acosh(x) := log1p( sqrt(x-1) * (sqrt(x-1) + sqrt(x+1)) ) . 104 t=sqrt(x-1.0); 105 return(log1p(t*(t+sqrt(x+1.0))));
|
/macosx-10.10/ruby-106/ruby/sample/ |
H A D | sieve.rb | 8 for i in 2 .. Math.sqrt(max)
|
/macosx-10.10/tcl-105/tcl_ext/tcllib/tcllib/modules/math/ |
H A D | elliptic.tcl | 45 set b [expr {sqrt(1.0-$k*$k)}] 49 set bnew [expr {sqrt($a*$b)}] 83 set b [expr {sqrt(1.0-$k*$k)}] 89 set bnew [expr {sqrt($a*$b)}] 114 set ksq [expr {sqrt(1.0-$k*$k)}] 209 return [expr {sqrt(1.0-$k*$k*sin($u))}] 231 set k [expr {sqrt($k2)}]
|
/macosx-10.10/tcl-105/tcl_ext/tclx/tclx/library/ |
H A D | fmath.tcl | 21 sin sinh sqrt tan tanh fmod pow atan2 abs double int round 36 proc sqrt x {uplevel 1 [list expr sqrt($x)]} procedure
|
/macosx-10.10/pyobjc-45/2.5/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/FieldGraph/ |
H A D | fieldMath.py | 1 from math import pi, sin, cos, hypot, sqrt
|
/macosx-10.10/pyobjc-45/2.6/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/FieldGraph/ |
H A D | fieldMath.py | 1 from math import pi, sin, cos, hypot, sqrt
|
/macosx-10.10/pyobjc-45/pyobjc/pyobjc-framework-Cocoa-2.5.1/Examples/AppKit/FieldGraph/ |
H A D | fieldMath.py | 1 from math import pi, sin, cos, hypot, sqrt
|
/macosx-10.10/tcl-105/tcl_ext/tklib/tklib/examples/plotchart/ |
H A D | plotdemos11.tcl | 31 $p plot series1 $x [expr {sqrt($x)}] 33 $p plot series3 $x [expr {$x*sqrt($x)}]
|
/macosx-10.10/tcl-105/tcl_ext/tklib/tklib/modules/plotchart/ |
H A D | plotspecial.tcl | 68 set stdevx [expr {sqrt($sumx2 / double($count-1))}] 69 set stdevy [expr {sqrt($sumy2 / double($count-1))}] 74 set rmsd [expr {sqrt(1.0 + $sstar2 - 2.0 * sqrt($sstar2) * $corrxy)}]
|
/macosx-10.10/BerkeleyDB-21/db/test_micro/ |
H A D | report.awk | 21 stdv = sqrt(var);
|
/macosx-10.10/bc-21/bc/Test/ |
H A D | timetest | 9 for file in exp.b ln.b sine.b atan.b jn.b mul.b div.b raise.b sqrt.b
|
/macosx-10.10/ruby-106/ruby/test/ruby/ |
H A D | test_complex.rb | 562 assert_equal(c.abs, Math.sqrt(c * c.conj)) 563 assert_equal(c.abs, Math.sqrt(c.real**2 + c.imag**2)) 1035 assert_equal(Complex(0,2), Math.sqrt(-4.0)) 1036 # assert_equal(true, Math.sqrt(-4.0).inexact?) 1037 assert_equal(Complex(0,2), Math.sqrt(-4)) 1038 # assert_equal(true, Math.sqrt(-4).exact?) 1040 assert_equal(Complex(0,2), Math.sqrt(Rational(-4))) 1041 # assert_equal(true, Math.sqrt(Rational(-4)).exact?) 1044 assert_equal(Complex(0,3), Math.sqrt(-9.0)) 1045 # assert_equal(true, Math.sqrt( [all...] |