例
(1,2,3)(1,2,3) , (3,2,1)(3,2,1)
ステップ 1
To find the distance between two 3d points, square the difference of the x, y, and z points. Then, sum them and take the square root.
√(x2-x1)2+(y2-y1)2+(z2-z1)2√(x2−x1)2+(y2−y1)2+(z2−z1)2
ステップ 2
x1x1、x2x2、y1y1、y2y2、z1z1、およびz2z2を換算値で置き換えます。
Distance=√(3-1)2+(2-2)2+(1-3)2Distance=√(3−1)2+(2−2)2+(1−3)2
ステップ 3
ステップ 3.1
33から11を引きます。
Distance=√22+(2-2)2+(1-3)2Distance=√22+(2−2)2+(1−3)2
ステップ 3.2
22を22乗します。
Distance=√4+(2-2)2+(1-3)2Distance=√4+(2−2)2+(1−3)2
ステップ 3.3
22から22を引きます。
Distance=√4+02+(1-3)2Distance=√4+02+(1−3)2
ステップ 3.4
00を正数乗し、00を得ます。
Distance=√4+0+(1-3)2Distance=√4+0+(1−3)2
ステップ 3.5
11から33を引きます。
Distance=√4+0+(-2)2Distance=√4+0+(−2)2
ステップ 3.6
-2−2を22乗します。
Distance=√4+0+4Distance=√4+0+4
ステップ 3.7
44と00をたし算します。
Distance=√4+4Distance=√4+4
ステップ 3.8
44と44をたし算します。
Distance=√8Distance=√8
ステップ 3.9
88を22⋅222⋅2に書き換えます。
ステップ 3.9.1
44を88で因数分解します。
Distance=√4(2)Distance=√4(2)
ステップ 3.9.2
44を2222に書き換えます。
Distance=√22⋅2Distance=√22⋅2
Distance=√22⋅2Distance=√22⋅2
ステップ 3.10
累乗根の下から項を取り出します。
Distance=2√2Distance=2√2
Distance=2√2Distance=2√2
ステップ 4
(1,2,3)(1,2,3)と(3,2,1)(3,2,1)の距離は2√22√2です。
2√2≈2.828427122√2≈2.82842712