Pocket Gems interview question

Write a function to compute the quadratic formula.