Java BigInteger의 제곱근을 어떻게 찾을 수 있습니까? BigInteger의 제곱근을 찾는 라이브러리가 있습니까? 나는 그것을 오프라인으로 계산하기를 원합니다. 루프 내부가 아닌 한 번만. 따라서 계산 비용이 많이 드는 솔루션이라도 괜찮습니다. 알고리즘을 찾아서 구현하고 싶지 않습니다. 쉽게 사용할 수 있는 솔루션이 완벽할 것입니다. 재미로: public static BigInteger sqrt(BigInteger x) { BigInteger div = BigInteger.ZERO.setBit(x.bitLength()/2); BigInteger div2 = div; // Loop until we hit the same value twice in a row, or wind // up altern..