Measurment units bug?

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

#1 Posted: 9/16/2021 11:16:28 AM
Porschaka

Porschaka

2 likes in 5 posts.

Group: 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 Posted: 9/16/2021 11:50:22 AM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: 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 Posted: 9/16/2021 12:09:36 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Match units user style

Gradient.PNG
#4 Posted: 9/16/2021 12:14:59 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Wrote

Match units user style

Gradient.PNG



Sorry, but that is not the problem we are talking about...
1 users liked this post
fedeghi 9/17/2021 3:31:00 AM
#5 Posted: 9/16/2021 12:25:12 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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



NOTOPIC.PNG

#6 Posted: 9/16/2021 12:34:28 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

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

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

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 9/16/2021 1:10:58 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: 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 Posted: 9/16/2021 2:39:43 PM
Porschaka

Porschaka

2 likes in 5 posts.

Group: 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 Posted: 9/16/2021 2:55:32 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 9/16/2021 3:21:08 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: 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 users liked this post
Porschaka 9/16/2021 3:50:00 PM
#12 Posted: 9/16/2021 3:56:33 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: 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 Posted: 9/16/2021 4:12:31 PM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: 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 users liked this post
Oscar Campo 9/16/2021 4:17:00 PM
#14 Posted: 9/16/2021 4:33:34 PM
Wesly Centerwall

Wesly Centerwall

26 likes in 156 posts.

Group: 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 users liked this post
Oscar Campo 9/16/2021 4:37:00 PM
#15 Posted: 9/16/2021 6:07:39 PM
CBG

CBG

77 likes in 312 posts.

Group: User

Hello
I think the following can be done

Kelvin_Celsius.png

Best Regards

Carlos
2 users liked this post
Oscar Campo 9/16/2021 6:16:00 PM, Porschaka 9/17/2021 8:06:00 AM
#16 Posted: 9/16/2021 8:05:14 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 9/16/2021 8:11:41 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Jean...
That's not the point of discussion. Please check the original post.
1 users liked this post
fedeghi 9/17/2021 3:32:00 AM
#18 Posted: 9/16/2021 9:34:44 PM
Oscar Campo

Oscar Campo

124 likes in 298 posts.

Group: Moderator

Jean, please don't spam the topic with irrelevant information...
1 users liked this post
fedeghi 9/17/2021 3:32:00 AM
#19 Posted: 9/16/2021 10:15:27 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: 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 Posted: 9/16/2021 10:28:32 PM
overlord

overlord

552 likes in 1332 posts.

Group: Moderator

Wrote

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


3 users liked this post
fedeghi 9/17/2021 3:29:00 AM, Oscar Campo 9/16/2021 11:30:00 PM, ElSid 9/17/2021 11:30:00 AM
  • New Posts New Posts
  • No New Posts No New Posts