You take square root when computing `a`, `b`, and `c`, and then raise back to the power of two, which wastes time and precision I guess. Perhaps not very important, but still...