inv(matrix) * matrix does not give unity matrix?

inv(matrix) * matrix does not give unity matrix? - A times inv(A) does not give unity matrix - Mensajes

#1 Publicado: 9/9/2014 10:36:01
Radovan Omorjan

Radovan Omorjan

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

Grupo: Moderator

Hello,

Maybe a minor issue, but I think this should be corrected. Result must be the unity matrix.

randominv.png

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#2 Publicado: 9/9/2014 10:45:56
Martin Kraska

Martin Kraska

1.361 me gusta en 2.275 mensajes.

Grupo: Moderator

Radovan, guess what the answer is...

Because A is defined symbolically.
Each use of A calls the definition and produces new random numbers.
It does not help to switch optimization to numeric, because that first generates the random number and then adds it to the zero matrix. Thus A becomes singular (all identical numbers.)

One might wish to define more precisely, what adding a random number to a matrix should give. First picking the number and adding it or first adding the call to all elements and then picking the numbers.
random.PNG
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#3 Publicado: 9/9/2014 11:01:44
Radovan Omorjan

Radovan Omorjan

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

Grupo: Moderator

I think you agree with me that this simple example reveals (again) the peculiarities of symbolic-numeric SMath problem

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
  • Nuevos mensajes
  • Sin mensajes nuevos