RFR: 8077587: BigInteger Roots [v23]

Raffaello Giulietti rgiulietti at openjdk.org
Mon Jul 14 14:01:50 UTC 2025


On Sat, 12 Jul 2025 09:18:27 GMT, fabioromano1 <duke at openjdk.org> wrote:

>> This PR implements nth root computation for BigIntegers using Newton method.
>
> fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Removed useless instruction

I agree that, for the scope of this PR, we should favor consistency with the current spec of `BigInteger.pow()`.
Removing the restriction for some special values like -1 and 1 should be left for a followup PR, if at all, and in a way consistent with `BigInteger.pow()`.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/24898#issuecomment-3069722834


More information about the core-libs-dev mailing list