RFR: 8077587: BigInteger Roots [v23]

Raffaello Giulietti rgiulietti at openjdk.org
Thu Jul 31 13:05:08 UTC 2025


On Mon, 14 Jul 2025 16:52:31 GMT, fabioromano1 <duke at openjdk.org> wrote:

>> fabioromano1 has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Removed useless instruction
>
> The integers are closed under positive powers, and not under positive nthRoots, this is true. However, the problem remains, as if the root degree `n` is negative, then for radicands that are not 1, -1 or 0 we should return 0, and zero raised to a negative exponent is undefined in real numbers, and so the remainder is.

@fabioromano1 Let me know when your changes settle down and the code is ready for another review round. I'd prefer to aim at a fixed rather than a quickly moving target ;-)

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

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


More information about the core-libs-dev mailing list