multiple calculations using vectors, but no vectors

multiple calculations using vectors, but no vectors - no vector calculation, but different load cases - Messages

#1 Posted: 3/30/2014 3:35:31 PM
csb531

csb531

0 likes in 24 posts.

Group: 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 Posted: 3/30/2014 4:51:29 PM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: 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 Posted: 3/31/2014 10:36:47 AM
Ryan Freund

Ryan Freund

19 likes in 339 posts.

Group: 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 Posted: 4/10/2014 6:42:31 AM
csb531

csb531

0 likes in 24 posts.

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