Skip to content

Commit

Permalink
[REF #36] actually call np.sqrt()
Browse files Browse the repository at this point in the history
  • Loading branch information
abhikpal committed Mar 13, 2018
1 parent f8f7b78 commit 0425714
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p5/pmath/vector.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def distance(self, other):
:rtype: float
"""
return np.square(np.sum((self._array - other._array) ** 2))
return np.sqrt(np.sum((self._array - other._array) ** 2))

dist = distance

Expand Down

0 comments on commit 0425714

Please sign in to comment.