SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
[SS-2368] Unit behavior - units don't match issue
Rank: Newbie
Groups: Registered
Joined: 22/07/2013(UTC) Posts: 1 Location: Seattle, WA
|
Hi, I have run into a problem with using units which are reciprocals - specifically Ohms and Siemens. If I try to add a quantity with units Ohms to the reciprocal of a quantity with units Siemens, an error occurs: Units don't match. Due to computer limitations where I am presently, I have only text entry. Example: Ra := 1 Ohm Ga := 1 S Rsum := Ra + 1/Ga = "units don't match" But they do cancel: Rprod := Ra * Ga = 1 Is there a work-around I'm missing somehow? Thanks, Fred Edited by moderator 06 August 2016 16:26:53(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,690 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
Hello Fred, it is a bug; as workaround you can transit through a 3rd variable with symbolic optimization on his definition, then it is possible to evaluate numerically this variable in a separate region (see the cloud example) Edited by user 06 August 2016 16:22:01(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 |
|
|
|
Rank: Newbie
Groups: Registered
Joined: 04/05/2014(UTC) Posts: 3
|
Hi, I was trying to implement a formula to calculate needed inductance on a flyback transformer and the program reports that units do not match. However splitting the formula in smaller pieces I was able to get the result out of it. units dont match.sm (35kb) downloaded 37 time(s).Thank you.
|
|
|
|
Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,690 Location: Italy Was thanked: 1368 time(s) in 895 post(s)
|
It is the same bug as the one shown in the first post, so I moved your post here. The problem is related to the numeric evaluation, but there is a workaround: - remove the RHS (the evaluation = and all after it) - change optimization to symbolical - show the result alone (Lp=#) Bug reported as SS-2368Edited by user 19 August 2016 18:08:50(UTC)
| Reason: marked as FIXED |
If you like my plugins consider to support SMath Studio buying a plan; to offer me a coffee: paypal.me/dcprojects |
1 user thanked Davide Carpi for this useful post.
|
|
|
Rank: Newbie
Groups: Registered
Joined: 04/05/2014(UTC) Posts: 3
|
Originally Posted by: Davide Carpi It is the same bug as the one shown in the first post, so I moved your post here. The problem is related to the numeric evaluation, but there is a workaround: - remove the RHS (the evaluation = and all after it) - change optimization to symbolical - show the result alone (Lp=#) Bug reported as SS-2368 Thank you Davide, seems to work following your advice. Emil
|
|
|
|
Rank: Administration Groups: Developers, Registered, Knovel Developers, Administrators, Advanced Member Joined: 11/07/2008(UTC) Posts: 1,617 Was thanked: 1981 time(s) in 667 post(s)
|
|
1 user thanked Andrey Ivashov for this useful post.
|
|
|
SMath Studio Forum
»
SMath Studio
»
Bugs & Problems
»
[SS-2368] Unit behavior - units don't match issue
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.