Inequality with units says incompatibe units if the units are the same

Inequality with units says incompatibe units if the units are the same - Inequality with units says incompatibe units if the units are the same - Messages

#1 Posted: 11/19/2012 10:32:41 AM
jmc

jmc

0 likes in 5 posts.

Group: User

I can't find a concise reson for this, it seems to depend on what unit is used.

If I have to evaluations (by this I mean equations without = in them) both of which contain units (here called E1 and E2) both of which evaluate to the same units.
I then create an in inequlaity, e.g. E1>E2= , the result being integer 0 or 1 (boolean) then about 50% of the time it says "Units don't match" even though they clearly do.

One equation that results in Hz works fine, another in Farad does not. If I multiply both sides by the unit, e.g. pF then it works.
#2 Posted: 11/20/2012 5:05:26 AM
Radovan Omorjan

Radovan Omorjan

325 likes in 2052 posts.

Group: Moderator

Hello,

Just make a problematic file and attached it to the post here, please.

Regards,
Radovan
When Sisyphus climbed to the top of a hill, they said: "Wrong boulder!"
#3 Posted: 11/20/2012 7:19:40 AM
jmc

jmc

0 likes in 5 posts.

Group: User

I have prepared an example, see attached
units problem.sm (24 KiB) downloaded 40 time(s).
#4 Posted: 11/20/2012 7:54:10 AM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

I have prepared an example, see attached



Hi [userlink]jmc[/userlink],

I can confirm the issue.

Seem related to SMath unit simplification... refreshing the sheet I can see an alternate behavior (see the attachment)


regards,

w3b5urf3r
B2.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#5 Posted: 11/20/2012 8:35:04 AM
jmc

jmc

0 likes in 5 posts.

Group: User

I noticed that if I right click and change Optimisation from numeric to symbolic and back the output sometimes changes, though I can't really get a handle on how to guarantee this to occur.
  • New Posts New Posts
  • No New Posts No New Posts