pp6 calculator with intercept and quadratic functions