Function called with matrix arguments get wrong answer

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

#1 Posted: 11/19/2012 10:22:33 AM
jmc

jmc

0 likes in 5 posts.

Group: 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) downloaded 42 time(s).
#2 Posted: 11/20/2012 5:02:52 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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 KiB) downloaded 43 time(s).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 11/20/2012 6:24:32 AM
jmc

jmc

0 likes in 5 posts.

Group: 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.
  • New Posts New Posts
  • No New Posts No New Posts