Introduction - If you have any usage issues, please Google them yourself
Description Given n input-output pairs, with a given m-order polynomial fitting the input-output relationship. When n is greater than the polynomial order m, into overdetermined equations to solve the problem. Using the least squares method to solve here. MODELING as follows: 1 into a matrix form: 2 wherein Formula seek three pairs of the guide, and easy to get 4 X' s use of QR decomposition can effectively reduce the arithmetic complexity, and improve accuracy. Please complete derivation, and accordingly design algorithm parameters a*. Input Description The first line of input n and m. Then every line in turn enter a group. They are floating point numbers. Output Description The polynomial parameters calculated by the low-level to high-end progressive output. Simply reserved integer part.