General

Profile

Student (Nathan Zook)

Issues

Activity

05/24/2018

07:33 PM Ruby trunk Feature #14097: Add union and difference to Array
I cannot say that I am a fan of this proposal. To be fair, I'm not a fan of #|.
Arrays are not sets. Trying to t...
Student (Nathan Zook)

05/19/2018

01:06 AM Ruby trunk Feature #14724: chains of inequalities
As a mathematician, this suggestion really has my attention.
First, I almost never write a <= b && b < c. What I ...
Student (Nathan Zook)

04/27/2018

07:14 AM Ruby trunk Feature #12607: Ruby needs an atomic integer
I think that you might not have understood his concern. Getting multi-threaded code right is hard, no matter the pri... Student (Nathan Zook)

04/06/2018

12:00 AM Ruby trunk Feature #14666: nil.any?{} should return false
`.any?` only makes sense on `Enumerable`s. There is no end to the methods that we would need to define on `nil` if w... Student (Nathan Zook)

03/03/2017

10:09 PM Ruby trunk Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
If you get the wrong answer from Newton's, then you are doing it wrong. It may fail to converge, (which seems MOST u... Student (Nathan Zook)

02/28/2017

10:38 PM Ruby trunk Feature #13263: Add companion integer nth-root method to recent Integer#isqrt
Newton's method has quadratic convergence. This means that a properly implemented Newton's method will blow away any... Student (Nathan Zook)

02/24/2017

09:36 PM Ruby trunk Feature #13250: Initial estimate for Integer#sqrt should be improved
Think about this some more, the fastest solution would be to actually to a N-R round in the floating point unit as we... Student (Nathan Zook)
08:13 PM Ruby trunk Feature #13250 (Closed): Initial estimate for Integer#sqrt should be improved
r57705, by Nobu, in response to issue #13219, added Integer#sqrt. The initial estimator used is `1 << (b-1)/2 | n >>... Student (Nathan Zook)
09:11 AM Ruby trunk Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
Jabari Zakiya wrote:
> Oh I see where at least part of the error comes from.
>
> In this
>
> ```
> def invers...
Student (Nathan Zook)
07:50 AM Ruby trunk Feature #13219: bug in Math.sqrt(n).to_i, to compute integer squareroot, new word to accurately fix it
It is now clear that Halley's method requires five multiplies, not the four previously reported by wikipedia. This m... Student (Nathan Zook)

Also available in: Atom