Rank: Newbie
Groups: Registered
Joined: 14/09/2021(UTC) Posts: 5 Was thanked: 2 time(s) in 2 post(s)
|
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/B2203KYEdited by user 16 September 2021 17:30:51(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: Porschaka 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
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Match units user style
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: Jean Giraud Match units user style Sorry, but that is not the problem we are talking about...
|
1 user thanked oscampo for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: oscampo Sorry, but that is not the problem we are talking about...
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
why you type an additional "'" between temp and °C ?
It is enough to type: temp*'°C=
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: oscampo 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: Jean Giraud 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?) Originally Posted by: Jean Giraud Had been used/demonstrated ad nauseum.
A little exaggerated affirmation...and not documented on common help documents (Interactive Guide, Handbooks, nor wiki)
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 14/09/2021(UTC) Posts: 5 Was thanked: 2 time(s) in 2 post(s)
|
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...
|
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: oscampo 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 well root that works superb. However, silent is coded ... otherwise would cry to murder ! I like you Oscar, take care ... Jean.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: Porschaka 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 user thanked oscampo for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Originally Posted by: Jean Giraud Originally Posted by: oscampo 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 well root 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 02/04/2018(UTC) Posts: 135 Was thanked: 22 time(s) in 19 post(s)
|
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.
|
1 user thanked wb.c for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 02/04/2018(UTC) Posts: 135 Was thanked: 22 time(s) in 19 post(s)
|
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 user thanked wb.c for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 14/10/2015(UTC) Posts: 308
Was thanked: 77 time(s) in 58 post(s)
|
Hello I think the following can be done Best Regards Carlos
|
2 users thanked CBG for this useful post.
|
on 17/09/2021(UTC), on 17/09/2021(UTC)
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: oscampo 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Jean... That's not the point of discussion. Please check the original post.
|
1 user thanked oscampo for this useful post.
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 10/12/2009(UTC) Posts: 246 Location: Cali, Colombia Was thanked: 85 time(s) in 65 post(s)
|
Jean, please don't spam the topic with irrelevant information...
|
1 user thanked oscampo for this useful post.
|
|
|
Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,866 Was thanked: 981 time(s) in 809 post(s)
|
Originally Posted by: oscampo 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.
|
|
|
|
Rank: Advanced Member Groups: Registered
Joined: 23/07/2013(UTC) Posts: 1,128 Was thanked: 508 time(s) in 338 post(s)
|
Originally Posted by: Jean Giraud You are right: Carlos has doctored your red image. Reynolds is one more doctored for Engineers ... for Smath Community as profitable.
|
3 users thanked overlord for this useful post.
|
on 17/09/2021(UTC), on 17/09/2021(UTC), on 17/09/2021(UTC)
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.