Matrix product

Matrix product - Why a Syntax Error ? - Сообщения

#1 Опубликовано: 08.04.2016 05:39:36
Mikaël

Mikaël

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

Группа: User

Hi to all,

Although I am registered since 2014, I only found some time recently to "play" with SMATH.

First of all, I would like to thank Andrey, the man with a magic brain, for his huge work ;-)
Smath is a great tool and I plan to use it for a teaching purpose.

To the point now. I have attached an example with a matrix calculation where Smath math gives me
a "syntax error". I would like to understand what is going wrong.

Any help would be appreciated. Thanks in advance.

Best regards,

MikaëlMatrixSyntaxError.JPG
#2 Опубликовано: 08.04.2016 06:30:14
Mike Kaganski

Mike Kaganski

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

Группа: User

That's because you try to assign the product not to a variable, but to a matrix. Try replacing leftmost part (before :=) to some variable. It will hold the resulting matrix.

Also, you may avoid constructs like "D2R", if you just use degree units.

scr20.png
С уважением, Михаил Каганский
1 пользователям понравился этот пост
Andrey Ivashov 08.04.2016 08:00:00
#3 Опубликовано: 09.04.2016 05:16:07
Mikaël

Mikaël

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

Группа: User

Hello Mike,

Thanks for the tip ! This works fine indeed.

Yes, using the units would be certainly a better idea to avoid my "old" constructions. I'll explore the units in the next days.

Best regards,
Mikaël
#4 Опубликовано: 19.04.2016 20:59:19
Mike Kaganski

Mike Kaganski

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

Группа: User

Wrote

That's because you try to assign the product not to a variable, but to a matrix. Try replacing leftmost part (before :=) to some variable. It will hold the resulting matrix.



This Mathcad syntax must work since 5953.

scr34.png
С уважением, Михаил Каганский
#5 Опубликовано: 20.04.2016 08:09:07
Mikaël

Mikaël

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

Группа: User

Hi Mike,

Good news. Thanks for this useful information ! I'am still working with the 0.98.5935
and I'll try the 5953 soon...

Best regards,

Mikaël
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений