Added newmath package to compute square roots