News for hackers. Stuff that matters.
Re:Bertrand's Paradox by sampo on Monday August 03, 2015 @10:59PM (#10001389)
You might have a bug in the code.

    >>> horizontal = chordCalc([[-1,0],[1,0]])
    >>> distance(horizontal)
    2.0
All good so far, but

    >>> diagonal = chordCalc([[-1,-1],[1,1]])
    >>> distance(diagonal)
    1.4142135623730951
shouldn't this give 2.0 as well?

There are no comments on this comment yet.