Open axkr opened 4 years ago
The same (derivated ?) behaviour can also be reproduced in
GreatestCommonDivisorAbstract<BigRational>#gcd(GenPolynomial<BigRational> P, GenPolynomial<BigRational> S)
GreatestCommonDivisorAbstract<BigRational>#lcm(GenPolynomial<BigRational> P, GenPolynomial<BigRational> S)
In Wolfram language
PolynomialGCD[1/2,2]
returns 1/2
, whereas JAS returns 1
PolynomialLCM[1/2,2]
returns 2
, whereas JAS returns 1
In the
BigRational#gcd(a,b)
method I would like to implement a GCD which gives the greatest rational number r for which all thea/r
andb/r
are integers and which should be used in the polynomial GCD methods.Example:
Is this possible? For example with a "global flag" which could be set to
true
?See: