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 Rosti  
#1 Posted : 10 April 2019 09:54:52(UTC)
Rosti

Rank: Newbie

Groups: Registered
Joined: 10/04/2019(UTC)
Posts: 3
Germany

Hi,

I'm new to SMath. It's a great software but I'm frustrated with an (maybe simple) error.

I try to calculate a density wich follows a simple linear equation:

The equation is: D = 0,0006x+1
x stands for the mass.

Now I try to calculate the density with different masses:

units2.JPG

How you see I can't solve the second equation with the unit "g". SMath shows "Unit don't match". I try different ways to insert units but it doesn't work in any direction.
So, what can I do? Where is the failure?

Thanks in advance for your help!

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

Offline PompelmoTell  
#2 Posted : 10 April 2019 11:15:04(UTC)
PompelmoTell


Rank: Advanced Member

Groups: Registered
Joined: 23/12/2011(UTC)
Posts: 319
Man
Italy
Location: italy

Was thanked: 109 time(s) in 93 post(s)
The formulation you wrote for the density calculation (linear equation) would suggest a dimensionless formulation (those typical equations contained in technical manuals or codes). Therefore it must be used in dimensionless form with the quantities inserted without a unit of measurement. With m2 you have instead used a unit of measurement that caused the error by not being able to add up a dimensionless quantity (1) with a quantity with unit of measure (g)
sergio
Offline Rosti  
#3 Posted : 10 April 2019 11:24:13(UTC)
Rosti

Rank: Newbie

Groups: Registered
Joined: 10/04/2019(UTC)
Posts: 3
Germany

Thank you for quick reply!

I will calculate it dimensionless.
Offline Davide Carpi  
#4 Posted : 10 April 2019 11:32:30(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,647
Man
Italy
Location: Italy

Was thanked: 1329 time(s) in 875 post(s)
The 2 typical approaches; as said by Sergio the dimensionless operand drives the result:

https://en.smath.com/cloud/worksheet/3ecekeDo

Edited by user 10 April 2019 11:56:45(UTC)  | Reason: Not specified

If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline Jean Giraud  
#5 Posted : 10 April 2019 16:57:16(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Rosti Go to Quoted Post
So, what can I do?

... work Engineering/Scientific projects Unitless
Maths are unitless, so projects using maths.
IMHO, the attached is a good example.

Inst_Colebrook Pipe Data.sm (60kb) downloaded 19 time(s).

Offline Rosti  
#6 Posted : 11 April 2019 08:49:20(UTC)
Rosti

Rank: Newbie

Groups: Registered
Joined: 10/04/2019(UTC)
Posts: 3
Germany

Thanks for all answers! Good
Offline Jean Giraud  
#7 Posted : 11 April 2019 15:47:40(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Rosti Go to Quoted Post
Thanks for all answers!

Knowing in what units the document is designed/produced,
you can always append the unit in the result ... like this:
you can't define kg/m³:=1
otherwise kg_m³:=1

This SS 6179 should work in your latest SS version.
Cheers ... Jean

UnitResult.PNG

Inst_Type J Genfit Rational J_8.sm (97kb) downloaded 5 time(s).
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.