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 Опубликовано: 19.11.2012 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 Опубликовано: 20.11.2012 05:05:26
Radovan Omorjan

Radovan Omorjan

325 сообщений из 2052 понравились пользователям.

Группа: 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 Опубликовано: 20.11.2012 07:19:40
jmc

jmc

0 сообщений из 5 понравились пользователям.

Группа: User

I have prepared an example, see attached
units problem.sm (24 КиБ) скачан 37 раз(а).
#4 Опубликовано: 20.11.2012 07:54:10
Davide Carpi

Davide Carpi

1415 сообщений из 2872 понравились пользователям.

Группа: 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 Опубликовано: 20.11.2012 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.
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений