How can I find the Square Root of a Java BigInteger?

后端 未结 19 1164
[愿得一人]
[愿得一人] 2020-11-28 08:10

Is there a library that will find the square root of a BigInteger? I want it computed offline - only once, and not inside any loop. So even computationally expensive solutio

19条回答
  •  悲&欢浪女
    2020-11-28 08:28

    For an initial guess I would use Math.sqrt(bi.doubleValue()) and you can use the links already suggested to make the answer more accurate.

提交回复
热议问题