solve([2*x=2,x=1.0], x)

Messages in english

Modérateur : xcasadmin

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

solve([2*x=2,x=1.0], x)

Message par niccolo » dim. juin 23, 2019 1:23 pm

solve([2*x=2,x=1.0], [x]) returns [[1.0]].
solve([2*x=2,x=1.0], x) returns [].

Is this a bug?

(I know I can write "1" instead of "1.0", and then I get the solution in either case. My "complaint" here is about having to write "[x]" instead of "x".)

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

Re: solve([2*x=2,x=1.0], x)

Message par parisse » lun. juin 24, 2019 7:20 pm

There is a call to exact for polynomial systems, not for univariate solving. BTW, your system is degenerate, it should have 1 equation for 1 unknown, where does it come from?

Répondre