Should it be just |x1-x2| instead of |x1-x2|^2?
Same question here. If we just want to obtain the change in distance between two endpoints, why would we need to take the square?
@yuanzhec @elenagong Yes, you're both correct. This should be |x1-x2| to represent the length between x1 and x2.
|x1-x2|
x1
x2
Should it be just |x1-x2| instead of |x1-x2|^2?
Same question here. If we just want to obtain the change in distance between two endpoints, why would we need to take the square?
@yuanzhec @elenagong Yes, you're both correct. This should be
|x1-x2|
to represent the length betweenx1
andx2
.