A symbolic solver derives algebraic results from equations. With SymPy, introduce coefficient symbols, form the matrix equation, and solve for the unknowns. section 6.2.3
A practical workflow is:
- Build the least-squares matrix from powers of the input values. section 6.2.3
- Build the right-hand column vector from output values and input powers. section 6.2.3
- Represent polynomial coefficients symbolically, solve the matrix equation, and collect the returned dictionary values. section 6.2.3
Approximating rowing progress
Workout times become input data for a polynomial approximation. The solver returns coefficients that can be used to construct the approximating polynomial, while plots reveal that a linear trend may misrepresent longer-term progress. section 6.2.3
