New function calcY

Calculate the y in a polynomial expression.