Add alpha calculation with polynomial fitting and linear algebra system solving