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 - Poruke

#1 Objavljeno: 19. 11. 2012. 10:32:41
jmc

jmc

0 svidjanja u 5 postova.

Grupa: 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 Objavljeno: 20. 11. 2012. 05:05:26
Radovan Omorjan

Radovan Omorjan

325 svidjanja i 1 nesvidjanja u 2.052 postova.

Grupa: 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 Objavljeno: 20. 11. 2012. 07:19:40
jmc

jmc

0 svidjanja u 5 postova.

Grupa: User

I have prepared an example, see attached
units problem.sm (24,04 KiB) preuzeto 1430 put(ova).
#4 Objavljeno: 20. 11. 2012. 07:54:10
Davide Carpi

Davide Carpi

1.444 svidjanja u 2.936 postova.

Grupa: 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 Objavljeno: 20. 11. 2012. 08:35:04
jmc

jmc

0 svidjanja u 5 postova.

Grupa: 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.
  • Novi postovi
  • Nema novih postova