1 Pages (6 items)
[SS-2368] Unit behavior - units don't match issue - Reciprocal units don't match when reciprocated - Messages
#1 Posted: 8/5/2016 8:19:36 PM
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
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
#2 Posted: 8/6/2016 10:20:10 AM
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)
![2016-08-06 15_21_29-SMath Studio Desktop - [OhmSiemens.sm_].png](/en-US/file/A5YsGv/2016-08-06-15_21_29-SMath-Studio-Desktop---_OhmSiemens_sm___png)
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)
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 8/18/2016 5:45:41 AM
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 (34 KiB) downloaded 60 time(s).
Thank you.
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 (34 KiB) downloaded 60 time(s).
Thank you.
#4 Posted: 8/18/2016 5:53:04 AM
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
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
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1 users liked this post
nierges 8/19/2016 5:10:00 AM
#5 Posted: 8/19/2016 5:11:59 AM
WroteIt 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
#6 Posted: 8/19/2016 12:07:49 PM
Both issues fixed. See latest available nightly build: http://en.smath.info/forum/yaf_postst7698_SMath-Studio-0-98-6073--19-August-2016.aspx
1 users liked this post
Davide Carpi 8/19/2016 8:35:00 PM
1 Pages (6 items)
-
New Posts
-
No New Posts