Handling of Units - 2 Questions - Units don't match - Messages
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?
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.
Thank you for any help you can offer!
WroteMy apologies as I am new to SMath.
Welcome here [userlink]BrianWhite1964[/userlink]

WroteQuestion 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)
WroteIf 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)
WroteQuestion 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.
Thank you for your reply! I will try to fill in the gaps.
QuoteIt'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 (43 KiB) downloaded 35 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?
I believe this is the functionality of MathCAD.QuoteNot 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)
We are running the same version, 98.6484. I downloaded it just a few weeks ago and am running Windows 7 Pro.QuoteProbably you are running an older version of SMath Studio, with latest stable I get Siemens as result.
Thank you, again!

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)
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)
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);
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!!
-
New Posts
-
No New Posts