RFR: 8077587: BigInteger Roots [v22]

fabioromano1 duke at openjdk.org
Tue Apr 22 01:00:18 UTC 2025


> This PR implements nth root computation for `BigInteger`s using Newton method and optimizes `BigInteger.pow(int)` method.
> [Here is a proof of convergence of the recurrence used.](https://github.com/user-attachments/files/19785045/nth_root_newton_proof_integers.pdf)

fabioromano1 has updated the pull request incrementally with two additional commits since the last revision:

 - Merge remote-tracking branch 'origin/BigInteger-nth-root' into BigInteger-nth-root
 - Merge branch 'BigInteger-nth-root' of https://github.com/fabioromano1/jdk into BigInteger-nth-root

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/24690/files
  - new: https://git.openjdk.org/jdk/pull/24690/files/8de6b825..100d0e14

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=24690&range=21
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=24690&range=20-21

  Stats: 0 lines in 0 files changed: 0 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/24690.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24690/head:pull/24690

PR: https://git.openjdk.org/jdk/pull/24690


More information about the core-libs-dev mailing list