https://1library.net/document/yrj0g0pq-squares-fitting-recktenwald-portland-university-department-mechanical-engineering.html