Function called with matrix arguments get wrong answer

Function called with matrix arguments get wrong answer - Function called with matrix arguments get wrong answer - Mensajes

#1 Publicado: 19/11/2012 10:22:33
jmc

jmc

0 me gusta en 5 mensajes.

Grupo: User

See the attached sheet.

The call to Vo() with matrix arguments should get the same answer as the individual evaluation, also included in the sheet, but it does not.


Vreg.sm (16 KiB) descargado 1420 vez(es).
#2 Publicado: 20/11/2012 5:02:52
Radovan Omorjan

Radovan Omorjan

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

Grupo: Moderator

Hello,

No, it is not a bug - just a SMath feature. You divided a scalar (RU) with a matrix (RL), that is wrong. Reciprocal of a matrix gives its inverse, not the reciprocal of its elements as you wanted.

Please see the attached corrections

Regards,
Radovan

Vreg-corr.sm (20,21 KiB) descargado 1449 vez(es).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Publicado: 20/11/2012 6:24:32
jmc

jmc

0 me gusta en 5 mensajes.

Grupo: User

Thanks for the correction. This one might be a good addition to a Gotya section on the wiki if it is not already there.
  • Nuevos mensajes
  • Sin mensajes nuevos