Welcome Register Projects Help About Blog APIdock release: IRON STEVE (1.4) If you have any comments, ideas or feedback, feel free to contact us at APIdock copyright Nodeta Oy 2008-2016 Flowdock However gamma(n) returns float and can be an approximation. If you are using IEEE 754 math then you can try [mikeratdog mike]$ irb --simple-prompt >> negInf = *['FFF0000000000000'].pack('H*').unpack('G') => -Infinity >> inf = *['7FF0000000000000'].pack('H*').unpack('G') => Infinity >> negInf.infinite? => -1 It makes use of Complex and Rational to have no rounding errors if possible.

Ruby nil values are converted to APL Null objects Simple Ruby arrays are converted to APL arrays, with individual elements converted as above. Returns -PI/2..PI/2. Join them; it only takes a minute: Sign up Can someone explain to me NaN in Ruby? Returns a Float in the range -1.0..1.0.

Fixes #8757 807e176 rafaelfranca closed this in 807e176 Jan 6, 2013 rafaelfranca added a commit that referenced this issue Jan 6, 2013 trisweb mswin32 build. > > Then again, Math::log(-1) throws a domain error for me. > > If worse comes to worst you

For example, the method leap? It might help to think of NaN meaning "some DN> undefined value". trisweb commented Jan 6, 2013 Agreed, thanks. What does dot forward slash forward slash mean (.//)?

SUSv3 defines that lgamma(-INFINITY) is +INFINITY though tgamma(-INFINITY) is defined a domain error. Look at the graph of Log(x). a elsif a >= 0 rsqrt(a) else Complex(0,rsqrt(-a)) end end Validate Generated by RDoc 5.0.0.beta2. Why is absolute zero unattainable?

Cyclically sort lists of mixed element types? lgamma(x) is defined as log(fabs(tgamma(x))). What happens when 2 Blade Barriers intersect? NaN stands for "Not a number".

Domain: (0, INFINITY) Codomain: (-INFINITY, INFINITY) Math.log10(1) #=> 0.0 Math.log10(10) #=> 1.0 Math.log10(10**100) #=> 100.0 static VALUE math_log10(VALUE obj, VALUE x) { size_t numbits; double d = get_double_rshift(x, &numbits); /* check Logical fallacy: X is bad, Y is worse, thus X is not bad In the United States is racial, ethnic, or national preference an acceptable hiring practice for departments or companies But, I hope that a suitable exception is raised when picked up domain errors. Ignore the first three irb commands. -Kurt On Tue, Aug 12, 2003 at 10:53:34AM +0900, Kurt M.

Domain: (-INFINITY, INFINITY) Codomain: (-INFINITY, INFINITY) Math.sinh(0) #=> 0.0 static VALUE math_sinh(VALUE obj, VALUE x) { return DBL2NUM(sinh(Get_Double(x))); } sqrt(a) click to toggle source Computes the square root of a. What does it actually mean by specified time? You signed out in another tab or window. Browse other questions tagged ruby ruby-on-rails-3 or ask your own question.

share|improve this answer edited Oct 3 '12 at 9:03 answered Oct 3 '12 at 8:21 Matzi 10.5k21537 add a comment| Your Answer draft saved draft discarded Sign up or log Sign in to comment Contact GitHub API Training Shop Blog About © 2016 GitHub, Inc. I try to write a patch for atanh, log, log2, log10, and sqrt according to the following policies: (1) Pick up domain and pole error cases before calling actual C functions. Okee dokey.

The error is raised when RubyAMF internals set the attributes hash containing NaN values for integer columns. It doesn't appear to be a constant in > > >Float or Math. > > module Math > Nan = log(-1) > end > > Now it is. > > Hal All you can do is use DN> Float.nan?