multiple calculations using vectors, but no vectors

multiple calculations using vectors, but no vectors - no vector calculation, but different load cases - Сообщения

#1 Опубликовано: 30.03.2014 15:35:31
csb531

csb531

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

Группа: User

Hello everybody,
I have a simple question - I hope! But I could not solve it myself, maybe someone can help me! I already looked in the tutorials, but could not find an answer.

I have to make a calculation for different load cases. In the past I used mathcad, and there I defined vectors (1-column matrices) for f.i. a load factor and a load. See the attached file.

I need to multiply the first load factor f[1 with the first load Frep[1, the second load factor f[2 * Frep[2 and the third load factor f[3 * Frep[3 and the result then is a vector with three values.

In Smath studio I can only get this result by defining three times f[1 * Frep[1 , f[2 * Frep[2 and f[3 * Frep[3.
Is there a way to do this easier?
smvraag2.jpg
#2 Опубликовано: 30.03.2014 16:51:29
Radovan Omorjan

Radovan Omorjan

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

Группа: Moderator

If you have Maxima plugin installed you could just do this


[MATH=eng]Maxima(f*F.rep)=mat(100,240,450,3,1)[/MATH]

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Опубликовано: 31.03.2014 10:36:47
Ryan Freund

Ryan Freund

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

Группа: User

Thank you this is helpful. I was wondering if there was a way to treat matrices as "tables". I've always have used the for command but it seems using Maxima() would be shorter. What are the rules that maxima uses in this case? They just multiply the the same row,column of each matrix and return the same size matrix with the product of each row,column?

Thanks!

#4 Опубликовано: 10.04.2014 06:42:31
csb531

csb531

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

Группа: User

Hello all,
thank you very much for your answers and reply!
I use the for command now, and it works great for me. The maxima method is indeed shorter, but not so clear for readers not familiar with SMath.
Thanks again, regards,
csb531.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений