Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages12>
Options
Go to last post Go to first unread
Offline Porschaka  
#1 Posted : 16 September 2021 17:16:28(UTC)
Porschaka

Rank: Newbie

Groups: Registered
Joined: 14/09/2021(UTC)
Posts: 5
Russian Federation

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/B2203KY

Edited by user 16 September 2021 17:30:51(UTC)  | Reason: Not specified

Wanna join the discussion?! Login to your SMath Studio Forum forum account. New Registrations are disabled.

Offline oscampo  
#2 Posted : 16 September 2021 17:50:22(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: Porschaka Go to Quoted Post
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 Shok

weird.png
Offline Jean Giraud  
#3 Posted : 16 September 2021 18:09:36(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Match units user style

Gradient.PNG
Offline oscampo  
#4 Posted : 16 September 2021 18:14:59(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Match units user style

Gradient.PNG


Sorry, but that is not the problem we are talking about...
thanks 1 user thanked oscampo for this useful post.
on 17/09/2021(UTC)
Offline Jean Giraud  
#5 Posted : 16 September 2021 18:25:12(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: oscampo Go to Quoted Post
Sorry, but that is not the problem we are talking about...


NOTOPIC.PNG

Offline oscampo  
#6 Posted : 16 September 2021 18:34:28(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
why you type an additional "'" between temp and °C ?

It is enough to type: temp*'°C=
Offline Jean Giraud  
#7 Posted : 16 September 2021 18:48:50(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: oscampo Go to Quoted Post
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.

Offline oscampo  
#8 Posted : 16 September 2021 19:10:58(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post

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 Go to Quoted Post

Had been used/demonstrated ad nauseum.


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

Offline Porschaka  
#9 Posted : 16 September 2021 20:39:43(UTC)
Porschaka

Rank: Newbie

Groups: Registered
Joined: 14/09/2021(UTC)
Posts: 5
Russian Federation

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...
Offline Jean Giraud  
#10 Posted : 16 September 2021 20:55:32(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: oscampo Go to Quoted Post
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.
Offline oscampo  
#11 Posted : 16 September 2021 21:21:08(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: Porschaka Go to Quoted Post
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!
thanks 1 user thanked oscampo for this useful post.
on 16/09/2021(UTC)
Offline oscampo  
#12 Posted : 16 September 2021 21:56:33(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: oscampo Go to Quoted Post
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.
Offline wb.c  
#13 Posted : 16 September 2021 22:12:31(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

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.

2021-09-16 15_09_34-SMath Solver - [Worksheet1_].png
2021-09-16 15_05_52-Units.xml - Notepad.png
thanks 1 user thanked wb.c for this useful post.
on 16/09/2021(UTC)
Offline wb.c  
#14 Posted : 16 September 2021 22:33:34(UTC)
wb.c


Rank: Advanced Member

Groups: Registered
Joined: 02/04/2018(UTC)
Posts: 132
United States

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.
thanks 1 user thanked wb.c for this useful post.
on 16/09/2021(UTC)
Offline CBG  
#15 Posted : 17 September 2021 00:07:39(UTC)
CBG


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

Kelvin_Celsius.png

Best Regards

Carlos
thanks 2 users thanked CBG for this useful post.
on 17/09/2021(UTC),  on 17/09/2021(UTC)
Offline Jean Giraud  
#16 Posted : 17 September 2021 02:05:14(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: oscampo Go to Quoted Post
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.
Offline oscampo  
#17 Posted : 17 September 2021 02:11:41(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Jean...
That's not the point of discussion. Please check the original post.
thanks 1 user thanked oscampo for this useful post.
on 17/09/2021(UTC)
Offline oscampo  
#18 Posted : 17 September 2021 03:34:44(UTC)
oscampo


Rank: Advanced Member

Groups: Registered
Joined: 10/12/2009(UTC)
Posts: 238
Man
Colombia
Location: Cali, Colombia

Was thanked: 79 time(s) in 60 post(s)
Jean, please don't spam the topic with irrelevant information...
thanks 1 user thanked oscampo for this useful post.
on 17/09/2021(UTC)
Offline Jean Giraud  
#19 Posted : 17 September 2021 04:15:27(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: oscampo Go to Quoted Post
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.
Offline overlord  
#20 Posted : 17 September 2021 04:28:32(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,125
Turkey

Was thanked: 506 time(s) in 337 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
You are right: Carlos has doctored your red image.
Reynolds is one more doctored for Engineers
... for Smath Community as profitable.

thanks 3 users thanked overlord for this useful post.
on 17/09/2021(UTC),  on 17/09/2021(UTC),  on 17/09/2021(UTC)
Users browsing this topic
2 Pages12>
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.