Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

In a system I'm building I'd like to have a "point" that hangs from two wires. The length of these wires is variable.

So basically I would have a triangle, two sides of which are "varible".

Could you give any hints on what to read/ how to build an algorithm that is given x,y coordinates of the point that is between the two sides of the triangles, and that could be used to calculate the two lengths of the sides.

share|improve this question
    
Your problem's underdetermined. The other ends are hanging from given heights, I presume; what are those heights? –  J. M. Apr 14 '12 at 11:11
    
Also, if this is kind of real setting, then this may not be a triangle to begin with (the wires have a weight of its own). –  dtldarek Apr 14 '12 at 11:26
    
@J.M. The other ends are on the same level, lets say It could be the "0-level" –  varesa Apr 14 '12 at 11:51
    
Good; how far apart are these ends? –  J. M. Apr 14 '12 at 11:52
    
@dtldarek Yes, the real-life version is not going to be "perfect", but I don't think it will do too much harm in my case –  varesa Apr 14 '12 at 11:52

1 Answer 1

up vote 0 down vote accepted

let the two rigid points be at $(0,0)$ and $(1,0)$, and let the hanging point be at $(x,y)$, with $x,y<0$. Then the distance from the hanging point to the two rigid points is:

$\sqrt{x^2+y^2}$

and:

$\sqrt{(x-1)^2+y^2}$

Note that this might very well not necesarily give you the length of the wires: assume one wire has length 1, and the other has length 1000. then surely the point is simply hanging below one of the rigid points (at distance 1), but we cannot compute the length of the second wire based just on the location of the hanging point.

share|improve this answer
    
I kind of figured this out already, but thanks! –  varesa Apr 14 '12 at 12:46
    
So what were you looking for, then? –  akkkk Apr 14 '12 at 12:46
    
I figured it out after asking the question –  varesa Apr 14 '12 at 13:14
    
Would you care to share your insight with us? –  akkkk Apr 14 '12 at 13:15
    
Well, its pretty much identical to your answer... –  varesa Apr 14 '12 at 13:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.