Programming parabolic function

You are using integer arithmetic. Use floats.