PC Review


Reply
Thread Tools Rate Thread

calculate a point

 
 
Curbie
Guest
Posts: n/a
 
      1st Jul 2011
I'm trying to calculate some steps or stages for a graph and am having
trouble, basically I'm trying to calculate a line between a point x,y
to a point on a line between x1,y1 and x2,y2 that looks some like
this:

.x2,y2(8,6)
/
/-----------------------------------x,y(13,3)
/
.x1,y1(1,1)

I think I got the slope 5/7=0.7142857, but I'm looking for the
equation to calculate line between a point x,y to a point on a line
between x1,y1 and x2,y.

Go easy on me, I haven't been to school in 35 years.

 
Reply With Quote
 
 
 
 
Xt
Guest
Posts: n/a
 
      4th Jul 2011
On Jul 2, 4:30*am, Curbie <jim.richard...@yahoo.com> wrote:
> I'm trying to calculate some steps or stages for a graph and am having
> trouble, basically I'm trying to calculate a line between a point x,y
> to a point on a line between x1,y1 and x2,y2 that looks some like
> this:
>
> * * * * * .x2,y2(8,6)
> * * * * */
> * * * * /-----------------------------------x,y(13,3)
> * * * /
> * * *.x1,y1(1,1)
>
> I think I got the slope 5/7=0.7142857, but I'm looking for the
> equation to calculate line between a point x,y to a point on a line
> between x1,y1 and x2,y.
>
> Go easy on me, I haven't been to school in 35 years.


Start from slope = (y - y1)/(x - x1) = (y2 - y1)/(x2 - x1). From this
we get the equation you want -

y = y1 + (x - x1)*(y2 - y1)/(x2 - x1). In the above case, the
equation is
y = 1 + (x - 1)*(6 - 1)/(8 - 1) or. if you really need to simplify
this y = 2/7 + 5/7*x

xt
 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      6th Jul 2011
On 01/07/2011 17:30, Curbie wrote:
> I'm trying to calculate some steps or stages for a graph and am having
> trouble, basically I'm trying to calculate a line between a point x,y
> to a point on a line between x1,y1 and x2,y2 that looks some like
> this:
>
> .x2,y2(8,6)
> /
> /-----------------------------------x,y(13,3)
> /
> .x1,y1(1,1)
>
> I think I got the slope 5/7=0.7142857, but I'm looking for the
> equation to calculate line between a point x,y to a point on a line
> between x1,y1 and x2,y.
>
> Go easy on me, I haven't been to school in 35 years.
>


If you mean to a point half way between x1,y1 and x2,y2, that point is
at (x1+x2)/2, (y1+y2)/2, or at 4.5, 3.5.

If, on the other hand, you mean your line to be horizontal, i.e. y=3,
then your point would have an x value of x1+(x2-x1)*y/(y2-y1), or 1+7*3/5.

David Biddulph
 
Reply With Quote
 
David Biddulph
Guest
Posts: n/a
 
      6th Jul 2011
On 06/07/2011 08:48, David Biddulph wrote:
> On 01/07/2011 17:30, Curbie wrote:
>> I'm trying to calculate some steps or stages for a graph and am having
>> trouble, basically I'm trying to calculate a line between a point x,y
>> to a point on a line between x1,y1 and x2,y2 that looks some like
>> this:
>>
>> .x2,y2(8,6)
>> /
>> /-----------------------------------x,y(13,3)
>> /
>> .x1,y1(1,1)
>>
>> I think I got the slope 5/7=0.7142857, but I'm looking for the
>> equation to calculate line between a point x,y to a point on a line
>> between x1,y1 and x2,y.
>>
>> Go easy on me, I haven't been to school in 35 years.
>>

>
> If you mean to a point half way between x1,y1 and x2,y2, that point is
> at (x1+x2)/2, (y1+y2)/2, or at 4.5, 3.5.
>
> If, on the other hand, you mean your line to be horizontal, i.e. y=3,
> then your point would have an x value of x1+(x2-x1)*y/(y2-y1), or 1+7*3/5.
>
> David Biddulph


Correction:
.... x1+(x2-x1)*(y-y1)/(y2-y1), or 1+7*2/5.

David Biddulph
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I calculate the inflection point? =?Utf-8?B?cmdveWFu?= Microsoft Excel Worksheet Functions 3 23rd Aug 2006 02:16 AM
Calculate right side of decimal point only Dan Microsoft Excel Worksheet Functions 5 3rd Sep 2004 12:43 PM
calculate a grade point average =?Utf-8?B?Y2hlZXNlYmFsbGlzaA==?= Microsoft Excel Worksheet Functions 1 1st Sep 2004 04:13 AM
How to calculate hide records while calculate their totals Ty Archer Microsoft Access Reports 1 4th Dec 2003 01:29 AM
Macro that hide or unhide and not calculate or calculate Jonsson Microsoft Excel Programming 1 19th Aug 2003 04:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 PM.