Subtracting matrices with a different number of columns

Subtracting matrices with a different number of columns - Arithmetic operation with a varying number of columns. - Messages

#1 Posted: 11/19/2025 8:25:09 AM
Thomas

Thomas

0 likes in 2 posts.

Group: User

Hi,

Rc can have any number of columns and I want to subtract one column (xc, xy...) from that.

Is this only possible with a loop, or is there a more elegant way?


Bildschirmfoto vom 2025-11-19 09-24-20.png
Yoshi
#2 Posted: 11/19/2025 8:07:43 PM
Martin Kraska

Martin Kraska

1,285 likes in 2,207 posts.

Group: Moderator

It seems that you should write Rc: L-xc where xc is the vector of coordinates of the reference point. But you better attach an sm file and a more comprehensible description of what you want. I don't see a matrix with multiple columns in your example.
Edited 11/19/2025 8:08:39 PM
Martin KraskaPre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#3 Posted: 11/20/2025 7:43:34 AM
Thomas

Thomas

0 likes in 2 posts.

Group: User

Hi Martin, here is the worksheet.
Rc should be calculated automatically depending on the number of forces entered.

bolt_pattern.sm (37.73 KiB) downloaded 1 time(s).
Yoshi
  • New Posts
  • No New Posts