Rank: Advanced Member Groups: Registered
Joined: 04/07/2010(UTC) Posts: 178 Was thanked: 19 time(s) in 13 post(s)
|
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 |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 04/07/2010(UTC) Posts: 178 Was thanked: 19 time(s) in 13 post(s)
|
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 |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 30/08/2012(UTC) Posts: 3 Location: dallas
|
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. Edited by user 30 August 2012 09:39:13(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hi ralfsnell, simply type in the right placeholder regards, w3b5urf3r Edited by user 30 August 2012 14:00:48(UTC)
| Reason: Not specified File Attachment(s): U&M.sm (4kb) downloaded 81 time(s). Davide Carpi attached the following image(s): |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 30/08/2012(UTC) Posts: 3 Location: dallas
|
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. Originally Posted by: w3b5urf3r_reloaded Hi ralfsnell, simply type in the right placeholder regards, w3b5urf3r
|
|
|
|
Rank: Member Groups: Registered
Joined: 02/03/2016(UTC) Posts: 18
|
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
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Hello
justhumm
, Originally Posted by: justhumm 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 Code:OutputUnitsSystem=Imperial
instead of in Code:%APPDATA%\Smath\settings.inf
(it is an experimental feature) |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
2 users thanked Davide Carpi for this useful post.
|
on 19/01/2017(UTC), on 19/01/2017(UTC)
|
|
Rank: Member Groups: Registered
Joined: 02/03/2016(UTC) Posts: 18
|
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. :-)
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
You're welcome Originally Posted by: justhumm 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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 01/04/2020(UTC) Posts: 85 Location: Wellington Was thanked: 4 time(s) in 3 post(s)
|
When using matrices with units the results are given MKS rather than in the input units as shown here: [img=https://drive.google.com/file/d/1t2xr1KeCbzzOqMVLE_I6mISzGC_4RLwn/view?usp=sharing]Units with Matrices[/img]
What an I needing to do to show the correct units?
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,173 Was thanked: 534 time(s) in 358 post(s)
|
Originally Posted by: marks2c 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
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 01/04/2020(UTC) Posts: 85 Location: Wellington Was thanked: 4 time(s) in 3 post(s)
|
Thank you so much Overload, greatly appreciated.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 01/04/2020(UTC) Posts: 85 Location: Wellington Was thanked: 4 time(s) in 3 post(s)
|
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... Edited by moderator 15 February 2022 13:44:43(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,713 Location: Italy Was thanked: 1378 time(s) in 902 post(s)
|
Originally Posted by: marks2c 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 consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 01/04/2020(UTC) Posts: 85 Location: Wellington Was thanked: 4 time(s) in 3 post(s)
|
Greatly appreciated Davide. Thank you.
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 01/04/2020(UTC) Posts: 85 Location: Wellington Was thanked: 4 time(s) in 3 post(s)
|
Thank you Jean, that is very elegant. What was the function of the red kOHMS:=1?
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 983 time(s) in 811 post(s)
|
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 (45kb) downloaded 13 time(s).
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,173 Was thanked: 534 time(s) in 358 post(s)
|
Originally Posted by: marks2c 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 users thanked overlord for this useful post.
|
on 24/02/2022(UTC), on 12/03/2022(UTC)
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,173 Was thanked: 534 time(s) in 358 post(s)
|
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.
|
2 users thanked overlord for this useful post.
|
on 24/02/2022(UTC), on 12/03/2022(UTC)
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.