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 BrianWhite1964  
#1 Posted : 12 December 2017 20:52:14(UTC)
BrianWhite1964

Rank: Newbie

Groups: Registered
Joined: 12/12/2017(UTC)
Posts: 4
United States
Location: Chicago

My apologies as I am new to SMath.

Question 1: In the attached picture, I am getting the error message "Units don't match". I am not sure what this message is telling me. If I have an error in my units, why doesn't SM display all of the units?

SMath Error.JPG

Question 2: In the next picture, should SM consolidate the units on its own? When I typed in "beta=", SM then knew the units should be consolidated to S.

SMath Units.JPG

Thank you for any help you can offer!

Edited by user 12 December 2017 21:28:52(UTC)  | Reason: Not specified

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

Offline Davide Carpi  
#2 Posted : 12 December 2017 22:14:01(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)
Originally Posted by: BrianWhite1964 Go to Quoted Post
My apologies as I am new to SMath.


Welcome here BrianWhite1964 Offline Good

Originally Posted by: BrianWhite1964 Go to Quoted Post
Question 1: In the attached picture, I am getting the error message "Units don't match". I am not sure what this message is telling me.

It's a typical error that can happen in sums (and subtractions of course); since here there is only one sum, probably the dimension of beta*N isn't the same of r0 (can't say much more without knowing what are the values behind these variables)

Originally Posted by: BrianWhite1964 Go to Quoted Post
If I have an error in my units, why doesn't SM display all of the units?

Not a bad idea but in more complex case the units reported might be still meaningless since the error might be thrown in an intermediate calculation (still something that might helps in general)

Originally Posted by: BrianWhite1964 Go to Quoted Post
Question 2: In the next picture, should SM consolidate the units on its own? When I typed in "beta=", SM then knew the units should be consolidated to S.

Probably you are running an older version of SMath Studio, with latest stable I get Siemens as result.
units.png

Edited by user 12 December 2017 22:45:19(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 Davide Carpi  
#3 Posted : 12 December 2017 22:41:52(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)
Forget to mention, if you set the optimization of that region to symbolic, you should be able to see the units in the sum part
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects
Offline BrianWhite1964  
#4 Posted : 12 December 2017 22:48:15(UTC)
BrianWhite1964

Rank: Newbie

Groups: Registered
Joined: 12/12/2017(UTC)
Posts: 4
United States
Location: Chicago

Hi David!
Thank you for your reply! I will try to fill in the gaps.
Quote:
It's a typical error that can happen in sums (and subtractions of course); since here there is just on sum, probably the dimension of beta*N isn't the same of r0 (can't say much more without knowing what are the values behind these variables)

Solenoid Force.sm (44kb) downloaded 17 time(s).

I have attached the file as it is only half a page of material. Yes, I believe there is an error in my equation. If I recall correctly, error or not, MathCAD would list all of the units, simplifying where possible. It sounds like SM does not have that functionality. Does the error that SM speaks of really mean that it cannot simplify any further than what is in each factor?

Quote:
Not a bad idea but in more complex case the units reported might be still meaningless since the error might be thrown in an intermediate calculation (still something that might helps in general)
I believe this is the functionality of MathCAD.

Quote:
Probably you are running an older version of SMath Studio, with latest stable I get Siemens as result.
We are running the same version, 98.6484. I downloaded it just a few weeks ago and am running Windows 7 Pro.

Thank you, again!
Offline BrianWhite1964  
#5 Posted : 13 December 2017 01:22:05(UTC)
BrianWhite1964

Rank: Newbie

Groups: Registered
Joined: 12/12/2017(UTC)
Posts: 4
United States
Location: Chicago

Originally Posted by: Davide Carpi Go to Quoted Post
Forget to mention, if you set the optimization of that region to symbolic, you should be able to see the units in the sum part


This is what happens when the region is set to symbolic:
Opto.JPG
Not what I was expecting!
Offline Davide Carpi  
#6 Posted : 13 December 2017 15:06:12(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)
About beta unit, I see both from your screenshot and from your file that you have overridden the output unit, so SMath is doing exactly what you have asked it to do (intentionally or not, but at some point you have written or pasted in the units' placeholder those units). Good
You can notice it because there isn't the units placeholder after the evaluation symbol (=); select and delete the result units to restore the default behavior (or to change into other units, f.e. you can force the unit to be always 'S)

GIF.gif


About the units don't match error, using symbolical evaluation (that was the target of my 2nd post, sorry for not being clear about it before)

2017-12-13 12_25_26-SMath Studio 0.98.6484 - [Solenoid%20Force.sm_].png
Units in the parenthesis are the result of some internal factorization, however r.0 is in inches, beta*N is in Siemens (N is dimensionless), no way that you can sum them as they are.

r.0 is obviously correct since the formula requires a length in the denominator to be correct as final dimension, thus the problem is in beta*N; there might be 2 causes:
  • that's an experimental formula; in this case N is supposed to be a number that multiplied by beta in Siemens produces a length (in inches, in millimeters, ...). Hence you have to adjust "eq 25" multiplying beta*N for the right units in order to produce the expected result;
  • there is an error in that formula (not my field here, I guess is not this case but since I have small knowledge about solenoids I cannot exclude it);

Edited by user 13 December 2017 15:25:54(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 BrianWhite1964  
#7 Posted : 15 December 2017 18:08:30(UTC)
BrianWhite1964

Rank: Newbie

Groups: Registered
Joined: 12/12/2017(UTC)
Posts: 4
United States
Location: Chicago

Regarding the first question, I deleted the equation and re-entered it, and....the units came out as S! What I had done originally, I do not know!

Regarding the question on the units error, I have restarted my computer, and now I am getting the same result as you are when selecting optimization/symbolic. I was surprised that the equation gives me an error. I was expecting the program to optimize the numbers and symbols as far as it could go.

I agree with you that there is an error in the equation. I am contacting the author of the paper to see if he can help me understand my results.

Davide, thank you very much for your help and your time! Your knowledge is greatly appreciated!!
Users browsing this topic
Guest
Similar Topics
wrong handling of units (Bugs & Problems)
by AdiS 02/05/2018 17:03:27(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.