Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
How to calculate the slope of a line in a graph ?
Dear all, I got a set of data for x and y, I plotted a line graph, I did linfit too, But now i would like to know how to calculate the slope of x and y in the program. I've been looking for a function that can help me overcome the problem, but I dnt have a luck to get it. Please any help will be appreciated. Thank you in advance for your time Many thanks Zolile
Re: How to calculate the slope of a line in a graph ?
On Thursday, April 25, 2013 8:04:17 PM UTC+2, zolile...@gmail.com wrote: > Dear all, > > I got a set of data for x and y, I plotted a line graph, I did linfit too, But now i would like to know how to calculate the slope of x and y in the program. > > I've been looking for a function that can help me overcome the problem, but I dnt have a luck to get it. Please any help will be appreciated. > > > > Thank you in advance for your time > > > > Many thanks > > Zolile Thank you so much!! Could you also help on calculating the uncertainty? I tried to calculate it on a program but I dnt figure it, Any suggestion will be highly appreciated. I searched the function that could help me calculating that but I ddnt get results. Many thanks Zolile
zolilemtumela@gmail.com writes: > Could you also help on calculating the uncertainty? > I tried to calculate it on a program but I dnt figure it, Any suggestion will be highly appreciated. I searched the function that could help me calculating that but I ddnt get results. Well, my suggestion is to read the on-line help for the PROB, SIGMA, and CHISQR keywords to LINFIT. Whatever your definition of "uncertainty" is, it is sure to be found in one or the other of those keywords. :-) Cheers, David -- David Fanning, Ph.D. Fanning Software Consulting, Inc. Coyote's Guide to IDL Programming: http://www.idlcoyote.com/ Sepore ma de ni thue. ("Perhaps thou speakest truth.")