Re: slope_intercept [message #66338] |
Fri, 01 May 2009 04:00 |
d.poreh
Messages: 406 Registered: October 2007
|
Senior Member |
|
|
On May 1, 3:37 am, Allan Whiteford
<allan.rem...@phys.remove.strath.ac.remove.uk> wrote:
> d.po...@gmail.com wrote:
>> Folks
>> I have a simple problem: I need to calculate the slope and intercept
>> of a line that connecting two points [a,b] and [c,d]. I mean I have
>> two points in a graph and I want slope and intercept of the line that
>> connect these (two) points.
>> Any help?
>> Cheers
>
> slope = (b-d)/(a-c)
> intercept = b - slope * a
>
> Probably :).
>
> Thanks,
>
> Allan
thank you Allan.
why probably? :)
|
|
|
Re: slope_intercept [message #66340 is a reply to message #66338] |
Fri, 01 May 2009 03:37  |
Allan Whiteford
Messages: 117 Registered: June 2006
|
Senior Member |
|
|
d.poreh@gmail.com wrote:
> Folks
> I have a simple problem: I need to calculate the slope and intercept
> of a line that connecting two points [a,b] and [c,d]. I mean I have
> two points in a graph and I want slope and intercept of the line that
> connect these (two) points.
> Any help?
> Cheers
slope = (b-d)/(a-c)
intercept = b - slope * a
Probably :).
Thanks,
Allan
|
|
|