This doesn't work:
fricas
(1) -> L := [ A = 2*P1+P2, B = 2*P2+P1, C = 2*Q1+Q2, D = 2*Q2+Q1]
Type: List(Equation(Polynomial(Integer)))
fricas
solve(L, [P1,P2])
Type: List(List(Equation(Fraction(Polynomial(Integer)))))
But it should, observe this:
fricas
SA:=solve([L.1,L.2],[P1,P2])
Type: List(List(Equation(Fraction(Polynomial(Integer)))))
fricas
SB:=solve([L.3,L.4],[Q1,Q2])
Type: List(List(Equation(Fraction(Polynomial(Integer)))))
First two equationa do not depend on , the later two don't depend on .
Now check it again the initial set:
fricas
S:=[SA.1.1,SA.1.2,SB.1.1,SB.1.2]
Type: List(Equation(Fraction(Polynomial(Integer))))
fricas
map(x+->eval(x,S),L)
Type: List(Equation(Expression(Integer)))
Status: open => duplicate