English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

the distance of line basically uses pythagorean theorm. is there a way to solve this without using the sqrt function?

d = sqrt (dX^2 + dY^2)

2006-07-21 07:29:02 · 10 answers · asked by george_a_lutz 1 in Science & Mathematics Mathematics

10 answers

Sure, you could find the length of the hypotenuse of a right triangle without using a square root... if you're up on your trig functions.

d = (Δy) / { sin [ Atan (Δy / Δx) ] } is one way to do it.

Using a square root with the Pythagorean Theorem seems easier to me, though.

2006-07-21 08:36:26 · answer #1 · answered by Anonymous · 3 0

Essentially, you can't get around the square root.

You can see that as follows. Suppose dX and dY are rational numbers (fractions of integers). Any number you can make by adding, subtraction, multiplying and dividing using dX and dY will be fractions of integers again. In order to "escape" the rational numbers, you will need more advanced functions such as sqrt.

Now consider a few simple situations:
dX = 1, dY = 1 --> d = sqrt 2
dX = 1, dY = 2 --> d = sqrt 5
The numbers sqrt 2, sqrt 5, etc. are not rational numbers. They can never be formed by adding, subtraction, multiplying or dividing integers.

2006-07-21 15:42:25 · answer #2 · answered by dutch_prof 4 · 0 0

It seems your question is not properly formated.

If you need to know the length of shortest distance between two points the, the formula you have is correct.

Also to know it, you can use any trig ratio, and one dx oy dy

2006-07-21 14:43:50 · answer #3 · answered by cookiedada 3 · 0 0

yes for instance,
transform the coordinates so that the line is horizontal or vertical

translate you line so that starting point is in origin,. gives an endpoint (Px,Py)

if Px==0 done Py is the distance
if Py = 0 done Px is the distance
else phi = arctg(Py/Px)
rotate the line around origin over phi degrees, this can be done by multiplying the vector (Px,Py) with a rotation-matrix of phi degree, this gives you the point (0,Q)
Q is the length .

2006-07-21 15:00:17 · answer #4 · answered by gjmb1960 7 · 0 0

you need the sqrt if you want the euclidean distance in R^2.
if your distance metric was say the manhatten metric, then the distance would be dX + dY

2006-07-21 14:32:05 · answer #5 · answered by cw 3 · 0 0

Sure, just rotate your coordinates so that dY is always zero.

then d = dX, no square root.

2006-07-21 15:13:56 · answer #6 · answered by Anonymous · 0 0

YOu can use different coordinates.
Fro instance: distance between two points A(r1, p1), B(r2, p2) on polar coordinates:

d = sqrt { r1^2 + r2^2 - r1 * r2 * cos(p1 - p2) }

...sorry, again there's a root.

2006-07-21 14:41:54 · answer #7 · answered by djfox_2001 3 · 0 0

Depends on what line you're talking about. If you're talking about the longest line of a right triangle, then I don't think there is. Couldn't you measure the line?

2006-07-21 14:33:25 · answer #8 · answered by ildjb@sbcglobal.net 5 · 0 0

d^2 = dx^2 + dy^2.

Bada bing!

2006-07-21 14:39:19 · answer #9 · answered by mathwhiz90601 1 · 0 0

dX^2=dX^2 + dY^2

2006-07-21 15:32:59 · answer #10 · answered by Anonymous · 0 0

fedest.com, questions and answers