Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline ibruethsch  
#1 Posted : 05 March 2021 23:03:11(UTC)
ibruethsch

Rank: Newbie

Groups: Registered
Joined: 01/03/2021(UTC)
Posts: 3
Germany
Location: Kassel

Hello
I’m a beginner with Smath.
Very powerful tool – thanks to the inventor.
I have problem with the units.
Very simple example

What to do that the result is 52500 MN/m2
Any help is appreciated.
Bernd

MNprom2.sm (3kb) downloaded 8 time(s).
Problems with units.pdf (96kb) downloaded 16 time(s).

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline overlord  
#2 Posted : 06 March 2021 00:05:02(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,126
Turkey

Was thanked: 507 time(s) in 338 post(s)
Originally Posted by: ibruethsch Go to Quoted Post
Hello
I’m a beginner with Smath.
Very powerful tool – thanks to the inventor.
I have problem with the units.
Very simple example

What to do that the result is 52500 MN/m2
Any help is appreciated.
Bernd


You are adding two unitless variable and expect result with unit, which makes no sense.
Either multiply addition with unit; or assign units to variables in first place.

Regards

MNprom2_units.sm (5kb) downloaded 5 time(s).

2021-03-06_00-01.png
Offline ibruethsch  
#3 Posted : 06 March 2021 12:01:36(UTC)
ibruethsch

Rank: Newbie

Groups: Registered
Joined: 01/03/2021(UTC)
Posts: 3
Germany
Location: Kassel

@overlord
thanks a lot

Adding the units
(E.cm+E.c0m)*'MN/{'m^2}
was the thing I missed.

Bernd
Offline wb.c  
#4 Posted : 11 March 2021 23:49:17(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 135
United States

Was thanked: 22 time(s) in 19 post(s)
I would recommend assigning units to individual variables, that way you can check equation logic with the units you get automatically. If the units are wrong, then something is wrong in the formula logic.
The default units shown in the result might be different than what you want, but you can modify it to the units you want to see and the numerical value is automatically updated.

Sometimes you might need to use a value with units in an unitless way (as a factor), for this just divide out the units before the calculation so that you keep your numerical value.
Offline ibruethsch  
#5 Posted : 12 March 2021 12:02:34(UTC)
ibruethsch

Rank: Newbie

Groups: Registered
Joined: 01/03/2021(UTC)
Posts: 3
Germany
Location: Kassel

@Wb.c Thanks a lot

I Tried the following:

KiN:'KN
Flä:'m^2
Force:100*KiN
A:10*Flä
Press:Force/A=10*'KN/{'m^2}

That looks the way I want.


>>If the units are wrong, then something is wrong in the formula logic.<<
I double that. I appreciate the unit-feature in SMATH.

Bernd
Offline Razonar  
#6 Posted : 12 March 2021 18:55:31(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: ibruethsch Go to Quoted Post
@Wb.c Thanks a lot

I Tried the following:

KiN:'KN
Flä:'m^2
Force:100*KiN
A:10*Flä
Press:Force/A=10*'KN/{'m^2}

That looks the way I want.


>>If the units are wrong, then something is wrong in the formula logic.<<
I double that. I appreciate the unit-feature in SMATH.

Bernd


Hi. I'm not sure if this comment helps or not, but it's confusing to me the way that you introduce KiN. Notice that 10^3 newtons are 'kN in SMath and 'KN it's "undefined", even it can be used as unit.

Also you introduce another unit, or something like that, as Flä.

If you want to show your result as kN/m^2 or kN/Flä the usual way in SMath is using the "unit placeholder" at the right end after the evaluation with equal:

Clipboard01.jpg

Best regards.
Alvaro.
Users browsing this topic
Guest
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.