3² -9² 9 81 90. Print Distance to other. The Euclidean distance between two vectors A and B is calculated as.
Using the distance formula shown in the above article find the horizontal distance between the two points by subtracting -8 from 2 which is 10.
The expression of the distance between two vectors in spherical coordinates provided in the other response is usually expressed in a more compact form that is not only easier to remember but is also ideal for capitalizing on certain symmetries when solving problems. In this article to find the Euclidean distance we will use the NumPy library. 3² -9² 9 81 90. A and b are arrays of floating point number and have the same lengthsize or simply the n.