Units and matrices - Messages
#1 Posted: 7/14/2010 3:02:00 PM
I was curious to see how units would be handled in matrices. So I tried a few things and was suprised how well it worked. See screen shot below.
Great job. Well thought out. Remeber everthing is calculated in SI units but comes out fine in US/Imperial units.

Great job. Well thought out. Remeber everthing is calculated in SI units but comes out fine in US/Imperial units.

Ed
#2 Posted: 10/24/2010 12:11:53 PM
Another advantage of SMath over Mathcad is for matrix elements to have any units and the math is performed correctly. This matrix and multiplication of its elements is not possible in Mathcad.


Ed
#3 Posted: 8/30/2012 2:36:03 AM
How do these US units work?
If I take a simple force in kips multiplied by a moment arm in ft
I get result in J....then when I try to change units to kip ft
by adding kip, I get m kip...then when trying to get to kip ft
I get
kgm^2 kip'ft
________________
(s^2)kip'ft
Following from cut and paste....
el(F,1)*el(A,2)=225.97*{'kg*'m^2}/{'s^2*''kipft}@''kipft
Also, how do you get the units outside the matrix? I can only
put units immediately after the cell values.
Thanks for any responses.
If I take a simple force in kips multiplied by a moment arm in ft
I get result in J....then when I try to change units to kip ft
by adding kip, I get m kip...then when trying to get to kip ft
I get
kgm^2 kip'ft
________________
(s^2)kip'ft
Following from cut and paste....
el(F,1)*el(A,2)=225.97*{'kg*'m^2}/{'s^2*''kipft}@''kipft
Also, how do you get the units outside the matrix? I can only
put units immediately after the cell values.
Thanks for any responses.
#4 Posted: 8/30/2012 6:58:49 AM
#5 Posted: 8/31/2012 11:04:14 AM
Thank you, was trying not to type but rather use the drop-down to insert units.
It appears the "*" was the missing element to that effort.
Appreciate your input and the attachment.
It appears the "*" was the missing element to that effort.
Appreciate your input and the attachment.
WroteHi ralfsnell,
simply type in the right placeholder'kip*'ft
regards,
w3b5urf3r
#6 Posted: 1/18/2017 6:45:25 PM
When using a matrix with elements of a variety of units, is there a way to control the display of the resulting units (imperial instead of SI units)?
For instance, in the attached image:
k'(1,1) = A(in^2)*E(ksi)/L(in) = kip/inch, but results are in kg/s^2
k'(3,2) = 6 * E(ksi) * I(in^4) / L^2(in^2) = kip, but results are in kg*m/s^2

For instance, in the attached image:
k'(1,1) = A(in^2)*E(ksi)/L(in) = kip/inch, but results are in kg/s^2
k'(3,2) = 6 * E(ksi) * I(in^4) / L^2(in^2) = kip, but results are in kg*m/s^2
#7 Posted: 1/18/2017 7:57:29 PM
Hello [userlink]justhumm[/userlink],
You can try using
instead of
in
(it is an experimental feature)
WroteWhen using a matrix with elements of a variety of units, is there a way to control the display of the resulting units (imperial instead of SI units)?
You can try using
OutputUnitsSystem=Imperial
instead of
OutputUnitsSystem=Metric
in
%APPDATA%\Smath\settings.inf
(it is an experimental feature)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#8 Posted: 1/18/2017 8:51:58 PM
#9 Posted: 1/19/2017 9:19:54 AM
You're welcome 
You can join the [SS-1]

WroteWishlist item:
It would be nice to have the ability to switch between feet and inches for the default imperial unit. :-)
You can join the [SS-1]
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#10 Posted: 2/14/2022 6:54:54 PM
When using matrices with units the results are given MKS rather than in the input units as shown here:

What an I needing to do to show the correct units?
What an I needing to do to show the correct units?
#11 Posted: 2/14/2022 8:46:07 PM
WroteWhat an I needing to do to show the correct units?
- After you calculate and get the result, click on the expression or move your cursor with keyboard to it (Step 1)
- There should appear a placeholder on the result part, write there your desired output unit (Step 2)
- When you press enter or click outside or just loose the focus for expression, your output shall be in your input units (Step 3)
Regards
#12 Posted: 2/14/2022 10:06:05 PM
Thank you so much Overload, greatly appreciated.
#13 Posted: 2/14/2022 11:08:20 PM
This is getting so close!
I've tried the plus-minus function, but can't get the min or max element values. I suspect this is because the result isn't a maxtrix:

edit by mod: please use the forum attachment feature; images stored outside the domain soon or leater expires or are removed and the topic becomes unreadable. Thank you.
Or it could be my 'PBCAK' (OSI layer-8) problem...
I've tried the plus-minus function, but can't get the min or max element values. I suspect this is because the result isn't a maxtrix:
edit by mod: please use the forum attachment feature; images stored outside the domain soon or leater expires or are removed and the topic becomes unreadable. Thank you.
Or it could be my 'PBCAK' (OSI layer-8) problem...
#14 Posted: 2/15/2022 7:47:55 AM
WroteI suspect this is because the result isn't a maxtrix
That's the cause, yes. You can use sys2mat() function from custom functions plugin or Max()/Min() functions (uppercase M) from the same extension.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#15 Posted: 2/15/2022 3:46:33 PM
Greatly appreciated Davide. Thank you.
#16 Posted: 2/16/2022 1:40:53 PM
#17 Posted: 2/16/2022 1:50:49 PM
Thank you Jean, that is very elegant. What was the function of the red kOHMS:=1?
#18 Posted: 2/16/2022 1:56:11 PM
min("matrix") - Returns the smallest element of vector or matrix. If any value is complex, returns min(Re(...)) + i*min(Im(...)).
... Exemplified
2D Plot Discontinuous [min(,)].sm (44 KiB) downloaded 66 time(s).
... Exemplified
2D Plot Discontinuous [min(,)].sm (44 KiB) downloaded 66 time(s).
#19 Posted: 2/16/2022 2:28:13 PM
WroteThank you Jean, that is very elegant. What was the function of the red kOHMS:=1?
Actually it is not elegant, very primitive method only used by Jean.
He just continues to try to confuse new users.
He make his own units, not compatible with ISO units.
Which is the case here, he assigned a new red colored Ω to 1. (Ω:=1)
That red Ω is not V/A, ask him to divide it to volts. He won't get 1/Amper.
Don't use his methods, them are just bad practices.
2 users liked this post
-
New Posts
-
No New Posts