The first thing you have to do is to store the points (usually in a list). Then calculate m. Σxiyi = sum of the xy products, and Σxi^2 = sum of the x's squared. There are many pages explaining regression lines on the web. If you aren't sure how to calculate m then calculate it in more than one way and provide an answer for each one, since this isn't a math class. That is not the formula that one usually sees for a regression line but it may have been simplified for purposes of the program.
woooee 814 Nearly a Posting Maven
e-papa commented: Cool comment, hope to help others like you someday +1