Function called with matrix arguments get wrong answer

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

#1 Objavljeno: 19. 11. 2012. 10:22:33
jmc

jmc

0 svidjanja u 5 postova.

Grupa: 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) preuzeto 1452 put(ova).
#2 Objavljeno: 20. 11. 2012. 05:02:52
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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) preuzeto 1480 put(ova).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Objavljeno: 20. 11. 2012. 06:24:32
jmc

jmc

0 svidjanja u 5 postova.

Grupa: 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.
  • Novi postovi
  • Nema novih postova