Calculate with squares and square roots.