There is no rootn method in the current scala3/library/src/scala/math/BigDecimal.scala at main · scala/scala3 · GitHub
In general this is something we don’t do. JDK 17 is our current target.
But about this specific suggestion, suppose we consider it. How difficult would it be for us to implement rootn 100% faithfully on JDKs that don’t have it? If it’s trivial, then it could be a nice convenience for users to provide it on JDK < 27. But if the implementation is nontrivial, then it seems risky to roll our own. Plus we’d need some sort of mechanism for delegating to the JDK 27 method if it’s available.
I think these questions would need to be addressed in order for this to be considered a proper proposal. We would need 1) a design justification for not just being satisfied with the JDK 17 baseline, including 2) a description of what the current workaround for users looks like, and 3) an implementation plan.
One thing we could include is the methods added in JDK 17 New APIs in Java 17 - javaalmanac.io
This is just sqrt(MathContext) and would probably be a quick change.