solve crash

Bugs

Modérateur : xcasadmin

lukamar
Messages : 331
Inscription : ven. juin 30, 2017 9:55 am
Localisation : Zagreb, Croatia

solve crash

Message par lukamar » lun. sept. 20, 2021 3:00 pm

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.

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

Re: solve crash

Message par parisse » mar. sept. 21, 2021 11:34 am

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;

lukamar
Messages : 331
Inscription : ven. juin 30, 2017 9:55 am
Localisation : Zagreb, Croatia

Re: solve crash

Message par lukamar » mar. sept. 21, 2021 5:45 pm

Thanks, it works!

Répondre