Answers for "pythagoras theorem with 1"

20

pythagorean theorem python

distance = math.sqrt((abs(distancex) ** 2) + (abs(distancey) ** 2))
Posted by: Guest on September-10-2020
3

pythagoras theorem formula

import math
class point:
    def __init__(self, x, y, z):
        self.x = x
        self.y = y
        self.z = z

p1 = point(10,14,0)
p2 = point(14,14,0)       

distanceByTwoPoints = math.sqrt((p1.y-p2.y)**2 + (p1.x-p2.x)**2)
Posted by: Guest on September-01-2021

Python Answers by Framework

Browse Popular Code Answers by Language