Added Logic to quad. equation

Quadratic equation now has some logic.