Page 1 sur 1

solve crash

Publié : lun. sept. 20, 2021 3:00 pm
par lukamar
Hi,
Xcas crashes with the following input:

Code : Tout sélectionner

solve([2*u1*v1+u2*v2,2*u1*v2+u2*v1,v1^2+v2^2-25,v1*v2-9],[u1,u2,v1,v2])
This is not the only example, I have the same problem with several more systems of equations.

Re: solve crash

Publié : mar. sept. 21, 2021 11:34 am
par parisse
Hi,

Seems to happen because 0 is a component of the solutions. Should be fixed by

Code : Tout sélectionner

diff cocoa.cc cocoa.cc~
9839,9840d9838
<     if (v.coord.empty())
<       return true;

Re: solve crash

Publié : mar. sept. 21, 2021 5:45 pm
par lukamar
Thanks, it works!