Measurment units bug?

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

#1 已发布: 2021/9/16 11:16:28
Porschaka

Porschaka

2个赞,共5个帖子。

组: 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 已发布: 2021/9/16 11:50:22
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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 已发布: 2021/9/16 12:09:36
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Match units user style

Gradient.PNG
#4 已发布: 2021/9/16 12:14:59
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Wrote

Match units user style

Gradient.PNG



Sorry, but that is not the problem we are talking about...
1位用户喜欢此帖子
fedeghi 2021/9/17 03:31:00
#5 已发布: 2021/9/16 12:25:12
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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



NOTOPIC.PNG

#6 已发布: 2021/9/16 12:34:28
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

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

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

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/9/16 13:10:58
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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 已发布: 2021/9/16 14:39:43
Porschaka

Porschaka

2个赞,共5个帖子。

组: 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 已发布: 2021/9/16 14:55:32
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/9/16 15:21:08
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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位用户喜欢此帖子
Porschaka 2021/9/16 15:50:00
#12 已发布: 2021/9/16 15:56:33
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: 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 已发布: 2021/9/16 16:12:31
⠀

⠀

26个赞,共155个帖子。

组: 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位用户喜欢此帖子
Oscar Campo 2021/9/16 16:17:00
#14 已发布: 2021/9/16 16:33:34
⠀

⠀

26个赞,共155个帖子。

组: 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位用户喜欢此帖子
Oscar Campo 2021/9/16 16:37:00
#15 已发布: 2021/9/16 18:07:39
CBG

CBG

78个赞,共312个帖子。

组: User

Hello
I think the following can be done

Kelvin_Celsius.png

Best Regards

Carlos
2位用户喜欢此帖子
Oscar Campo 2021/9/16 18:16:00, Porschaka 2021/9/17 08:06:00
#16 已发布: 2021/9/16 20:05:14
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/9/16 20:11:41
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Jean...
That's not the point of discussion. Please check the original post.
1位用户喜欢此帖子
fedeghi 2021/9/17 03:32:00
#18 已发布: 2021/9/16 21:34:44
Oscar Campo

Oscar Campo

135个赞,共309个帖子。

组: Moderator

Jean, please don't spam the topic with irrelevant information...
1位用户喜欢此帖子
fedeghi 2021/9/17 03:32:00
#19 已发布: 2021/9/16 22:15:27
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: 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 已发布: 2021/9/16 22:28:32
overlord

overlord

600个赞,共1,381个帖子。

组: Moderator

Wrote

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


3位用户喜欢此帖子
fedeghi 2021/9/17 03:29:00, Oscar Campo 2021/9/16 23:30:00, ElSid 2021/9/17 11:30:00
  • 有新帖
  • 无新帖