wrong handling of units

wrong handling of units - Measure Units - Messages

#1 Posted: 5/2/2018 11:03:27 AM
jaguar3

jaguar3

0 likes in 4 posts.

Group: User

I have a problem. Why does Gy or J appear near tonne?


NH.3_ex_c_r:NH.3_ex_c*M.ex_c=1227.6454 Gy tonne


NH.3_ex_c_r:NH.3_ex_c*M.ex_c=1.2276*10^6 J tonne
#2 Posted: 5/2/2018 12:37:53 PM
Arie

Arie

93 likes in 285 posts.

Group: User

Hi Adis,

We'll need more information to help you. could you please post the .sm file you're referencing?

Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#3 Posted: 5/2/2018 4:23:48 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

NH.3_ex_c_r:NH.3_ex_c*M.ex_c=1227.6454 Gy tonne



"tonne" reminds me a Mathcad bug in the German version.
It also appeared in the Mathsoft "Fourier model" English US version.
#4 Posted: 5/3/2018 4:47:19 AM
jaguar3

jaguar3

0 likes in 4 posts.

Group: User

Wrote

Hi Adis,

We'll need more information to help you. could you please post the .sm file you're referencing?



Proiect master MB1.sm (38 KiB) downloaded 37 time(s).
#5 Posted: 5/3/2018 7:11:31 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

Proiect master MB1.sm (38 KiB) downloaded 37 time(s).



In your file I can't find neither NH.3_ex_c nor M.ex_c
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#6 Posted: 5/3/2018 7:34:53 AM
jaguar3

jaguar3

0 likes in 4 posts.

Group: User

Wrote

Wrote

Proiect master MB1.sm (38 KiB) downloaded 37 time(s).



In your file I can't find neither NH.3_ex_c nor M.ex_c



Sorry wrong files.

Problem.sm (105 KiB) downloaded 33 time(s).

Real result is 1.2276 tone. 1 tone = 1000 kg
#7 Posted: 5/3/2018 11:03:34 AM
Arie

Arie

93 likes in 285 posts.

Group: User

I think i fixed the issue. See attached.

I have disabled some of your manual unit definition and performed some cleanup.

Generally you do not want to overwrite units already defined within Smath and you were re-defining already defined units.

The issue, I believe came with your definition of H.ii_c. You applied units to the result and toggled ignore units. This made it seem like the result evaluated to kJ/kg when in fact it was unitless.

This propagated through to the result in question.

Problem_alyles.sm (120 KiB) downloaded 40 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#8 Posted: 5/3/2018 11:33:53 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

I think i fixed the issue. See attached.



Above my head ! why do we still have tonne ?
For God sake what's that in Smath ?
What was it in Mathcad ?

What is the difference between "Titration and MassBalance" ?

In case of interest, PseudoInverse works fine in Smath.

Jean

Matrix PseudoInverse.sm (111 KiB) downloaded 31 time(s).
#9 Posted: 5/3/2018 11:40:41 AM
Arie

Arie

93 likes in 285 posts.

Group: User

Wrote


For God sake what's that in Smath ?



1 tonne is defined as 1000 kg. Same thing as a Mg.

Untitled.png
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
#10 Posted: 5/3/2018 12:12:18 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

1 tonne is defined as 1000 kg. Same thing as a Mg.



Thnks alyless,

ton(long), ton(short), tonne(metric)
#11 Posted: 5/3/2018 1:05:51 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Wrote

ton(short)




short is t

2018-05-03 18_06_07-SMath Studio - [Page1_].png

2018-05-03 18_06_20-know-your-traffic-signs.pdf.png
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#12 Posted: 5/4/2018 1:10:03 AM
jaguar3

jaguar3

0 likes in 4 posts.

Group: User

Wrote

I think i fixed the issue. See attached.

I have disabled some of your manual unit definition and performed some cleanup.

Generally you do not want to overwrite units already defined within Smath and you were re-defining already defined units.

The issue, I believe came with your definition of H.ii_c. You applied units to the result and toggled ignore units. This made it seem like the result evaluated to kJ/kg when in fact it was unitless.

This propagated through to the result in question.

Problem_alyles.sm (120 KiB) downloaded 40 time(s).



Thank you very much! The original file was worked in Mathcad. After conversion to SMath Studio, some errors occurred. In the future, I will only use the defined units.
#13 Posted: 5/4/2018 1:26:54 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Thank you very much! The original file was worked in Mathcad.



Oh !, you are the man of science in there.
I know about titration from past professional [Process Control & Instrumentation]
Not so easy ... so and so ... generally Ph control.
Did you visit PseudoMatrix ? Any use for your project ?

  • New Posts New Posts
  • No New Posts No New Posts