Measurment units bug?

Measurment units bug? - Can't add degreeC to the variable - Poruke

#1 Objavljeno: 16. 9. 2021. 11:16:28
Porschaka

Porschaka

2 svidjanja u 5 postova.

Grupa: User

Hello everyone!
I found some strange behaviour. Let's assume two dimensionless quantity length:=10 and temp:=12. Now I multiply length * 1m and the result is 10m. However if I multiply temp * 1degC the result is error because temp is not defined? Is it some kind of a bug?
https://ibb.co/B2203KY
#2 Objavljeno: 16. 9. 2021. 11:50:22
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

Hello everyone!
I found some strange behaviour. Let's assume two dimensionless quantity length:=10 and temp:=12. Now I multiply length * 1m and the result is 10m. However if I multiply temp * 1degC the result is error because temp is not defined? Is it some kind of a bug?
https://ibb.co/B2203KY



I checked and it's really strange

weird.png
#3 Objavljeno: 16. 9. 2021. 12:09:36
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Match units user style

Gradient.PNG
#4 Objavljeno: 16. 9. 2021. 12:14:59
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

Match units user style

Gradient.PNG



Sorry, but that is not the problem we are talking about...
1 korisnika je svidelo ovu objavu
fedeghi 17. 9. 2021. 03:31:00
#5 Objavljeno: 16. 9. 2021. 12:25:12
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Sorry, but that is not the problem we are talking about...



NOTOPIC.PNG

#6 Objavljeno: 16. 9. 2021. 12:34:28
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

why you type an additional "'" between temp and °C ?

It is enough to type: temp*'°C=
#7 Objavljeno: 16. 9. 2021. 12:48:50
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

why you type an additional "'" between temp and °C ?


To make the unit silent but responding.
Had been used/demonstrated ad nauseum.
Most useful in program, still conveying meaning.

#8 Objavljeno: 16. 9. 2021. 13:10:58
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote


To make the unit silent but responding.


It's a trickier way to make things work (why use this "trick" with Celsius Degrees but not with Meters?)

Wrote


Had been used/demonstrated ad nauseum.



A little exaggerated affirmation...and not documented on common help documents (Interactive Guide, Handbooks, nor wiki)

#9 Objavljeno: 16. 9. 2021. 14:39:43
Porschaka

Porschaka

2 svidjanja u 5 postova.

Grupa: User

It looks like a bug to me. Is there a chance that it will be fixed any time soon? What do you think? Will use "'" between temp and °C for now...
#10 Objavljeno: 16. 9. 2021. 14:55:32
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

A little exaggerated affirmation...and not documented on common help documents (Interactive Guide, Handbooks, nor wiki)


The two you mention are little fraction of all Forum projects.
Silent unit is not documented as wellroot that works superb.
However, silent is coded ... otherwise would cry to murder !
I like you Oscar, take care ... Jean.
#11 Objavljeno: 16. 9. 2021. 15:21:08
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

It looks like a bug to me. Is there a chance that it will be fixed any time soon? What do you think? Will use "'" between temp and °C for now...



Yep! I agree. I just reported the issue in bug section of the forum.
Regards!
1 korisnika je svidelo ovu objavu
Porschaka 16. 9. 2021. 15:50:00
#12 Objavljeno: 16. 9. 2021. 15:56:33
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Wrote

Wrote

A little exaggerated affirmation...and not documented on common help documents (Interactive Guide, Handbooks, nor wiki)


The two you mention are little fraction of all Forum projects.
Silent unit is not documented as wellroot that works superb.
However, silent is coded ... otherwise would cry to murder !
I like you Oscar, take care ... Jean.



The ‘silent unit’ is only mentioned by you only in 5 topics (this is only 5 or 6 posts) in the entire forum, and nobody discussed about it, so, here, in this forum, there is not enough documentation about it either there is not information about it on SMath Interctive Guide, SMath Handbooks, nor SMath Wiki

The ‘silent unit’ is not the question in this topic.

The issue originally mentioned by Porschaka looks like a bug, so it was reported in the corresponding section.
#13 Objavljeno: 16. 9. 2021. 16:12:31
⠀

⠀

26 svidjanja u 155 postova.

Grupa: User

Very strange, seems to be °C, °F, and °Re.

Interestedly enough, these are the units labeled in the units.xml file as nonlinear. I don't know what any of this means, but I'm sure it has something to do with the built in functions that get us these three units.

2021-09-16 15_09_34-SMath Solver - [Worksheet1_].png
2021-09-16 15_05_52-Units.xml - Notepad.png
1 korisnika je svidelo ovu objavu
Oscar Campo 16. 9. 2021. 16:17:00
#14 Objavljeno: 16. 9. 2021. 16:33:34
⠀

⠀

26 svidjanja u 155 postova.

Grupa: User

Keep in mind that if you define a new dummy unit for °C by adding a "'" to the front, you don't solve your problem.
The conversion for these 3 units is not linear, meaning you can't just multiply by a factor to get the conversion.

If you are only planning on working with your own isolated units without taking advantage of the built in units, then go right ahead and define a custom version of the unit.

This issue needs to be solved in the programing or with a custom function that does the conversion for you the right way and can handle the nonlinear units.
1 korisnika je svidelo ovu objavu
Oscar Campo 16. 9. 2021. 16:37:00
#15 Objavljeno: 16. 9. 2021. 18:07:39
CBG

CBG

78 svidjanja u 312 postova.

Grupa: User

Hello
I think the following can be done

Kelvin_Celsius.png

Best Regards

Carlos
2 korisnika je svidelo ovu objavu
Oscar Campo 16. 9. 2021. 18:16:00, Porschaka 17. 9. 2021. 08:06:00
#16 Objavljeno: 16. 9. 2021. 20:05:14
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

The issue originally mentioned by Porschaka looks like a bug,


OK Oscar, explain to yourself what the unit should be:
10m*1°C ... Ask SI Community.
Eager to discover ... Jean.
You assign unit to undefined,
do it otherwise: put °C in result.
#17 Objavljeno: 16. 9. 2021. 20:11:41
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Jean...
That's not the point of discussion. Please check the original post.
1 korisnika je svidelo ovu objavu
fedeghi 17. 9. 2021. 03:32:00
#18 Objavljeno: 16. 9. 2021. 21:34:44
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Jean, please don't spam the topic with irrelevant information...
1 korisnika je svidelo ovu objavu
fedeghi 17. 9. 2021. 03:32:00
#19 Objavljeno: 16. 9. 2021. 22:15:27
Jean Giraud

Jean Giraud

983 svidjanja u 6.866 postova.

Grupa: User

Wrote

Jean, please don't spam the topic with irrelevant information...


You are right: Carlos has doctored your red image.
Reynolds is one more doctored for Engineers
... for Smath Community as profitable.
#20 Objavljeno: 16. 9. 2021. 22:28:32
overlord

overlord

601 svidjanja u 1.382 postova.

Grupa: Moderator

Wrote

You are right: Carlos has doctored your red image.
Reynolds is one more doctored for Engineers
... for Smath Community as profitable.


3 korisnika je svidelo ovu objavu
fedeghi 17. 9. 2021. 03:29:00, Oscar Campo 16. 9. 2021. 23:30:00, ElSid 17. 9. 2021. 11:30:00
  • Novi postovi
  • Nema novih postova