website-copy icon indicating copy to clipboard operation
website-copy copied to clipboard

[java/rational-numbers] Create mentoring.md

Open dsletten opened this issue 3 years ago • 2 comments

dsletten avatar Jul 02 '22 20:07 dsletten

@exercism/java please check!

SleeplessByte avatar Feb 16 '24 09:02 SleeplessByte

This is good feedback, but is actually a bug in the exercise itself. I checked the reference implementation and it turns out it uses a completely different implementation compared to the exercise instructions.

@dsletten would you be willing to submit a PR to https://github.com/exercism/java to address this? I think the reference implementation should be updated to use

Math.pow(Math.pow(base, numerator), 1.0/denominator);

And the tolerance in the tests should be lowered to the point where this implementation passes the tests.

sanderploegsma avatar Feb 16 '24 09:02 sanderploegsma