https://arunangshudas.com/blog/polynomial-regression/try-magic-write-34/