-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Milestone
Description
Imported from SourceForge on 2024-07-09 20:03:00
Created by macrakis on 2023-12-28 20:32:27
Original: https://sourceforge.net/p/maxima/bugs/4232
gcd doc currently reads:
To take the gcd when an algebraic is present, e.g.,
gcd (gcd (x^2-2*sqrt(2)*x+2, x-sqrt(2)), the option variablealgebraicmust betrueandgcdmust not beez.
- Actually,
gcdmust be eithersubresorred; neithereznorspmodhandles the algebraic case. Test:
makelist( gcd (x^2-2, x-sqrt(2)),
gcd,'[ez,subres,red,spmod]),algebraic;
=> [1, x - sqrt(2), x - sqrt(2), 1]
-
Instead of saying "must not be
ez, it is clearer, simpler, and more accurate to say "must besubresorred". -
We should explicitly mention that taking the GCD over the complexes (C) is included in the algebraic case:
makelist( gcd(x^2+1,x+%i),
gcd, '[ez,subres,red,spmod]),algebraic;
=> [1, x + %i, x + %i, 1]
Tested in Maxima 5.46.0 SBCL 2.3.0 MacOS