Page 1 sur 1

solve([a+b=6, a/b=1/2], a)

Publié : jeu. août 13, 2020 7:05 pm
par niccolo
I don't understand this:

solve([a+b=6, a/b=1/2], a) returns []
solve([a+b=6, a/b=1/2], [a]) returns []
solve([a+b=6, a/b=1/2], [a,b]) returns [[2,4]] (correctly)

Is this a bug?

(Is this somehow related to solve([2*x=2,x=1.0], x) ?)

Re: solve([a+b=6, a/b=1/2], a)

Publié : ven. août 14, 2020 4:58 am
par parisse
It's not a bug. In the first and second command, you are searching common solutions to 2 equations in a, b is assumed to be generic. In the last command you are searching a and b in a system.