roots() bug with a simple linear system of equations

roots() bug with a simple linear system of equations - roots() returns "not real roots" - Mensajes

#1 Publicado: 23/6/2013 21:15:46
Diego Jarrín

Diego Jarrín

7 me gusta en 14 mensajes.

Grupo: User

Trying to solve a simple linear system of equations (2 equations) using the roots() function gave me the error message "No real roots", but changing the order of the elements of one of the equations, solved it.
roots() rare behavior

I know this is not so important, but it was interesting to see how SMath`s functions behaves.
Ecuadorian Electronic engineer and MBA student at Salesian Polytechnic University.
A 2 usuarios les gustó este mensaje
Davide Carpi 24/6/2013 5:52:00, ioan92 24/6/2013 4:24:00
#2 Publicado: 24/6/2013 1:28:09
Radovan Omorjan

Radovan Omorjan

325 me gusta y 1 no me gusta en 2.052 mensajes.

Grupo: Moderator

Confirmed,

It seems some bug is here.

FindRoot() from Nonlinear Solvers plugin will work well here


[MATH=eng]FindRoot(mat(A+B-108,2*A-3*B-156,2,1),mat(A≡0,B≡0,2,1))=mat(96,12,2,1)[/MATH]

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
A 2 usuarios les gustó este mensaje
Davide Carpi 24/6/2013 5:52:00, ioan92 24/6/2013 4:24:00
#3 Publicado: 25/6/2013 4:06:19
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Symbolic optimization fails to recognize the difference of the equivalent expresions to zero in one step. If the result is taken and again symbolically optimized, then zero is identified. Perhaps an internal workaround for such problems could be to repeatedly apply symbolic optimization until there are no more changes.
roots.sm (17,08 KiB) descargado 1459 vez(es).
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
A 3 usuarios les gustó este mensaje
Radovan Omorjan 25/6/2013 7:28:00, Davide Carpi 25/6/2013 8:07:00, ioan92 29/6/2013 7:44:00
  • Nuevos mensajes
  • Sin mensajes nuevos