comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: slope_intercept
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: slope_intercept [message #66338] Fri, 01 May 2009 04:00
d.poreh is currently offline  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 Go to previous message
Allan Whiteford is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Readline and/or easy command line history access
Next Topic: A problem with envi_save_rois

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:36:41 PDT 2025

Total time taken to generate the page: 0.00748 seconds