I am in need of a Slope function. I know the forumla for Slope, but cannot find a pre-written function. There must be one out there somewhere. Does anyone have any ideas?

Question 2- Excel has a slope funtion. Is it possible to access it from .Net? I have tried but cannot figure it out short of exporting all the data to a spreadsheet and then calling the function. Can I implement excel functions in .net code (local to the code)?

Thanks in advance.