3 ms·
You might have a bug in the code. >>> horizontal = chordCalc([[-1,0],[1,0]]) >>> distance(horizontal) 2.0 All good so far, but >>> diagonal =
by sampo 11y ago
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?