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 
Return to the default flat view Create a new topic Submit Reply
Re: slope_intercept [message #66338] Fri, 01 May 2009 04:00 Go to previous message
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? :)
[Message index]
 
Read Message
Read Message
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 17:34:27 PDT 2025

Total time taken to generate the page: 0.00417 seconds