Function called with matrix arguments get wrong answer

Function called with matrix arguments get wrong answer - Function called with matrix arguments get wrong answer - Сообщения

#1 Опубликовано: 19.11.2012 10:22:33
jmc

jmc

0 сообщений из 5 понравились пользователям.

Группа: 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 КиБ) скачан 39 раз(а).
#2 Опубликовано: 20.11.2012 05:02:52
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 КиБ) скачан 40 раз(а).
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 20.11.2012 06:24:32
jmc

jmc

0 сообщений из 5 понравились пользователям.

Группа: 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений