Answer:
point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))
Explanation:
The distance formula is the difference of the x coordinates squared, plus the difference of the y coordinates squared, all square rooted. For the general case, it appears you simply need to change how you have written the code.
point_dist = math.sqrt((math.pow(x2 - x1, 2) + math.pow(y2 - y1, 2))
Note, by moving the 2 inside of the pow function, you have provided the second argument that it is requesting.
You were close with your initial attempt, you just had a parenthesis after x1 and y1 when you should not have.
Cheers.
extension lines,sketches,leader lines,dimensions describes all illustrations created by freehand.
Q:What velocity does the boy attain if he throws the bricks one at a time?
Answer:Linear velocity since it moves back and firth and does not rotate like angular velocity.
Hey,
Who plays a role in the financial activities of a company?
<em>O D. Everyone at the company, including managers and employees</em>
If i would visit one of my friends it’s c