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 - 消息

#1 已发布: 2012/11/19 10:32:41
jmc

jmc

0个赞,共5个帖子。

组: 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 已发布: 2012/11/20 05:05:26
Radovan Omorjan

Radovan Omorjan

325个赞和1个踩,共2,052个帖子。

组: 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 已发布: 2012/11/20 07:19:40
jmc

jmc

0个赞,共5个帖子。

组: User

I have prepared an example, see attached
units problem.sm (24.04 KiB)已下载 1412 次。
#4 已发布: 2012/11/20 07:54:10
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: 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 已发布: 2012/11/20 08:35:04
jmc

jmc

0个赞,共5个帖子。

组: 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.
  • 有新帖
  • 无新帖