In Microsoft Excel there is a SLOPE function. What I need to do is translate the formula of this SLOPE function to work in a Visual C++ Application. Can anyone out there show me how I would write the function or functions that will produce the same output as the Excel SLOPE function! I can provide more information as needed, but would appreciate as detailed information as possible! PLEASE HELP!

Many thanks!