Measurment units bug?

Measurment units bug? - Can't add degreeC to the variable - Сообщения

#1 Опубликовано: 16.09.2021 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 Опубликовано: 16.09.2021 11:50:22
Oscar Campo

Oscar Campo

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

Группа: 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 Опубликовано: 16.09.2021 12:09:36
Jean Giraud

Jean Giraud

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

Группа: User

Match units user style

Gradient.PNG
#4 Опубликовано: 16.09.2021 12:14:59
Oscar Campo

Oscar Campo

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

Группа: Moderator

Wrote

Match units user style

Gradient.PNG



Sorry, but that is not the problem we are talking about...
1 пользователям понравился этот пост
fedeghi 17.09.2021 03:31:00
#5 Опубликовано: 16.09.2021 12:25:12
Jean Giraud

Jean Giraud

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

Группа: User

Wrote

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



NOTOPIC.PNG

#6 Опубликовано: 16.09.2021 12:34:28
Oscar Campo

Oscar Campo

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

Группа: Moderator

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

It is enough to type: temp*'°C=
#7 Опубликовано: 16.09.2021 12:48:50
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.09.2021 13:10:58
Oscar Campo

Oscar Campo

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

Группа: 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 Опубликовано: 16.09.2021 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 Опубликовано: 16.09.2021 14:55:32
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.09.2021 15:21:08
Oscar Campo

Oscar Campo

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

Группа: 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 16.09.2021 15:50:00
#12 Опубликовано: 16.09.2021 15:56:33
Oscar Campo

Oscar Campo

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

Группа: 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 Опубликовано: 16.09.2021 16:12:31
Wesly Centerwall

Wesly Centerwall

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

Группа: 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 16.09.2021 16:17:00
#14 Опубликовано: 16.09.2021 16:33:34
Wesly Centerwall

Wesly Centerwall

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

Группа: 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 16.09.2021 16:37:00
#15 Опубликовано: 16.09.2021 18:07:39
CBG

CBG

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

Группа: User

Hello
I think the following can be done

Kelvin_Celsius.png

Best Regards

Carlos
2 пользователям понравился этот пост
Oscar Campo 16.09.2021 18:16:00, Porschaka 17.09.2021 08:06:00
#16 Опубликовано: 16.09.2021 20:05:14
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.09.2021 20:11:41
Oscar Campo

Oscar Campo

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

Группа: Moderator

Jean...
That's not the point of discussion. Please check the original post.
1 пользователям понравился этот пост
fedeghi 17.09.2021 03:32:00
#18 Опубликовано: 16.09.2021 21:34:44
Oscar Campo

Oscar Campo

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

Группа: Moderator

Jean, please don't spam the topic with irrelevant information...
1 пользователям понравился этот пост
fedeghi 17.09.2021 03:32:00
#19 Опубликовано: 16.09.2021 22:15:27
Jean Giraud

Jean Giraud

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

Группа: 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 Опубликовано: 16.09.2021 22:28:32
overlord

overlord

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

Группа: 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 17.09.2021 03:29:00, Oscar Campo 16.09.2021 23:30:00, ElSid 17.09.2021 11:30:00
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений