Searched refs:sqrt (Results 1 - 25 of 278) sorted by relevance

1234567891011>>

/macosx-10.10/JavaScriptCore-7600.1.17/tests/stress/
H A Dfiat-double-to-int52-then-fail-to-fold.js2 return fiatInt52(Math.sqrt(2)) + 1;
9 if (result != Math.sqrt(2) + 1)
H A Dftl-arithsqrt.js2 return Math.sqrt(x);
/macosx-10.10/tcl-105/tcl_ext/tbcload/tbcload/tests/tcl/
H A Dexpr.tcl16 # the "expr sqrt(16)" part generates the exception range, because that code
20 set result [expr int(10 * [expr sqrt(16)])]
H A Dexpr1.tcl21 set result [expr int(10 * [expr sqrt([llength $l])])]
/macosx-10.10/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Math/
H A D15.8.2.17.js24 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 Dtest_cmath.rb6 assert_equal CMath.sqrt(1.0.i), CMath.sqrt(1.i), '[ruby-core:31672]'
/macosx-10.10/ruby-106/ruby/test/bigdecimal/
H A Dtest_bigmath.rb18 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 Dmathn.rb204 # 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 Dcmath.rb15 # 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 Dprime.cpp11 unsigned lim = unsigned(sqrt((double)n));
/macosx-10.10/ntp-92/scripts/stats/
H A Dloop.awk39 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 Dhypot.c16 return x * sqrt(1.0+y*y);
H A Dacosh.c45 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 Dacosh.c49 * 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 Dsieve.rb8 for i in 2 .. Math.sqrt(max)
/macosx-10.10/tcl-105/tcl_ext/tcllib/tcllib/modules/math/
H A Delliptic.tcl45 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 Dfmath.tcl21 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 DfieldMath.py1 from math import pi, sin, cos, hypot, sqrt
/macosx-10.10/pyobjc-45/2.6/pyobjc/pyobjc-framework-Cocoa/Examples/AppKit/FieldGraph/
H A DfieldMath.py1 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 DfieldMath.py1 from math import pi, sin, cos, hypot, sqrt
/macosx-10.10/tcl-105/tcl_ext/tklib/tklib/examples/plotchart/
H A Dplotdemos11.tcl31 $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 Dplotspecial.tcl68 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 Dreport.awk21 stdv = sqrt(var);
/macosx-10.10/bc-21/bc/Test/
H A Dtimetest9 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 Dtest_complex.rb562 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...]

Completed in 299 milliseconds

1234567891011>>