Units and matrices

Units and matrices - Poruke

#1 Objavljeno: 14. 7. 2010. 15:02:00
Edward Ulle

Edward Ulle

21 svidjanja u 182 postova.

Grupa: Moderator

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.

Ed
#2 Objavljeno: 24. 10. 2010. 12:11:53
Edward Ulle

Edward Ulle

21 svidjanja u 182 postova.

Grupa: Moderator

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 Objavljeno: 30. 8. 2012. 02:36:03
ralfsnell

ralfsnell

0 svidjanja u 3 postova.

Grupa: User

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.
#4 Objavljeno: 30. 8. 2012. 06:58:49
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Hi ralfsnell,

simply type in the right placeholder

'kip*'ft


regards,

w3b5urf3r
U&M.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Objavljeno: 31. 8. 2012. 11:04:14
ralfsnell

ralfsnell

0 svidjanja u 3 postova.

Grupa: User

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.

Wrote

Hi ralfsnell,

simply type in the right placeholder

'kip*'ft


regards,

w3b5urf3r



#6 Objavljeno: 18. 1. 2017. 18:45:25
justhumm

justhumm

0 svidjanja u 18 postova.

Grupa: User

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

matrix-units.JPG
#7 Objavljeno: 18. 1. 2017. 19:57:29
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Hello [userlink]justhumm[/userlink],

Wrote

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)?



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
2 korisnika je svidelo ovu objavu
frapuano 19. 1. 2017. 06:13:00, justhumm 18. 1. 2017. 20:44:00
#8 Objavljeno: 18. 1. 2017. 20:51:58
justhumm

justhumm

0 svidjanja u 18 postova.

Grupa: User

Davide Carpi:

Thanks for the response! It seems to be working.

Wishlist item:
It would be nice to have the ability to switch between feet and inches for the default imperial unit. :-)

matrix-units2.JPG
#9 Objavljeno: 19. 1. 2017. 09:19:54
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

You're welcome

Wrote

Wishlist 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 Objavljeno: 14. 2. 2022. 18:54:54
Mark R Harris

Mark R Harris

5 svidjanja u 90 postova.

Grupa: User

When using matrices with units the results are given MKS rather than in the input units as shown here:
Units with Matrices

What an I needing to do to show the correct units?
#11 Objavljeno: 14. 2. 2022. 20:46:07
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

What 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

placeholder.png
#12 Objavljeno: 14. 2. 2022. 22:06:05
Mark R Harris

Mark R Harris

5 svidjanja u 90 postova.

Grupa: User

Thank you so much Overload, greatly appreciated.
#13 Objavljeno: 14. 2. 2022. 23:08:20
Mark R Harris

Mark R Harris

5 svidjanja u 90 postova.

Grupa: User

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:
MinMaxValues.jpg
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 Objavljeno: 15. 2. 2022. 07:47:55
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: Moderator

Wrote

I 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 Objavljeno: 15. 2. 2022. 15:46:33
Mark R Harris

Mark R Harris

5 svidjanja u 90 postova.

Grupa: User

Greatly appreciated Davide. Thank you.
#16 Objavljeno: 16. 2. 2022. 13:40:53
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

TOL.PNG
#17 Objavljeno: 16. 2. 2022. 13:50:49
Mark R Harris

Mark R Harris

5 svidjanja u 90 postova.

Grupa: User

Thank you Jean, that is very elegant. What was the function of the red kOHMS:=1?
#18 Objavljeno: 16. 2. 2022. 13:56:11
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

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,8 KiB) preuzeto 1553 put(ova).
#19 Objavljeno: 16. 2. 2022. 14:28:13
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

Thank 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 korisnika je svidelo ovu objavu
Oscar Campo 11. 3. 2022. 22:52:00, Jason McCool 23. 2. 2022. 18:31:00
#20 Objavljeno: 16. 2. 2022. 15:05:33
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Jean's math is unitless crusade is garbage.
We don't only do pure math calculations.
Engineering and science needs units.
As I have said before;
Math is unitless, science/engineering is not.

Jean's "silence unit" crap is useless, confusing.
As it is shown below.

2022-02-16_21-02.png
2 korisnika je svidelo ovu objavu
Oscar Campo 11. 3. 2022. 22:51:00, Jason McCool 23. 2. 2022. 18:30:00
  • Novi postovi
  • Nema novih postova