Vector element operations

Vector element operations - Poruke

#1 Objavljeno: 6. 6. 2014. 19:33:19
Cyborgtable

Cyborgtable

0 svidjanja u 1 postova.

Grupa: User

Hello,

I've just recently discovered this software and have probably is a simple question but I can't find the answer to it.
I'm trying to square each element in a vector and can't find a way to do it.

#2 Objavljeno: 7. 6. 2014. 02:42:55
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: Moderator

Wrote

Hello,

I've just recently discovered this software and have probably is a simple question but I can't find the answer to it.
I'm trying to square each element in a vector and can't find a way to do it.



Look at this or this or this posts. To make long story short, in SMath you should use loops for that, or to use Maxima plugin, or to use something like this.


[MATH=eng]v:mat(4,5,1,2,3,4,6,1)[/MATH]

[MATH=eng]sys2mat(mat2sys(v)^2)=mat(16,25,1,4,9,16,6,1)[/MATH]

This is many time mentioned problem from beginners

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Objavljeno: 10. 5. 2025. 15:36:17
RegRetired

RegRetired

8 svidjanja u 144 postova.

Grupa: User

Your hotlinks do not work. Please provide correct links.
Thanks,
Reg
Reg CurryLoveland, CO
#4 Objavljeno: 11. 5. 2025. 10:44:58
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
  • Novi postovi
  • Nema novih postova