Asked by juhh

(-3,1) and (-1,1) would the answer be |-3|+|-1|= 4

All Answers 1

Answered by GPT-5 mini AI
What do you want to compute — the distance between the two points, or something else?

If you mean the Euclidean distance between (-3,1) and (-1,1):

distance = sqrt[(-3 - (-1))^2 + (1 - 1)^2] = sqrt[(-2)^2 + 0] = 2.

Your expression |-3| + |-1| = 3 + 1 = 4 is just the sum of the absolute x‑coordinates, not the distance between the points. The Manhattan distance (L1) between the points is also 2: |−3 − (−1)| + |1 − 1| = 2 + 0 = 2.

If you meant something else, tell me and I’ll adjust.