Page 1 sur 1

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

Publié : dim. juin 23, 2019 1:23 pm
par niccolo
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".)

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

Publié : lun. juin 24, 2019 7:20 pm
par parisse
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?