[NUMB-194]: method that determines if 2 integers are coprime#130
[NUMB-194]: method that determines if 2 integers are coprime#130orionlibs wants to merge 1 commit intoapache:masterfrom orionlibs:NUMB-new-areRelativePrimes-method
Conversation
…ively prime or coprime
|
These are simply pass through methods for The new methods do not include a link to Thus users can bring in that dependency if they require. |
@aherbert hello. I am sorry, but how can I implement the function using ArithmeticUtils::gcd without importing the core module? What is the procedure in such cases? Mathematics is very very interconnected. Every mathematical object can use every other. You can have a set of vectors or a vector of sets, etc. Math modules will eventually have to be interconnected |
|
I was stating that this entire PR should be dropped and replaced with some better documentation in the Primes class header to indicate that the functionality to detect relatively prime numbers can be found in ArithmeticUtils. |
@aherbert not every dev knows that checking for coprimes requires a GCD calculation, but they do know that coprimes require some kind of primes utility since coprime has "prime" in its name. You know? So, they will use the Primes class to see what kinds of methods it has. It will not occur to them to go to the ArithmeticUtils to check specifically the GCD method JavaDoc. I can add your suggested JavaDoc to the GCD methods, if you want, but............. |
NUMBER-194. Overloaded method that determines if 2 integers are relatively prime or coprime. Included tests