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

Messages in english

Modérateur : xcasadmin

niccolo
Messages : 26
Inscription : dim. mars 02, 2014 2:13 pm

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

Message par niccolo » jeu. août 13, 2020 7:05 pm

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) ?)

parisse
Messages : 5731
Inscription : mar. déc. 20, 2005 4:02 pm
Contact :

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

Message par parisse » ven. août 14, 2020 4:58 am

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.

Répondre