Created
November 3, 2013 22:00
-
-
Save zdw/7295363 to your computer and use it in GitHub Desktop.
for pam
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| p = [5,10] | |
| q = [9,12] | |
| print math.sqrt((p[0] - q[0])**2+(p[1] - q[1])**2) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when run, prints "4.472135955", which is the same as when done through bc with "sqrt((5-9)^2+(12-10)^2)"