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

Notification

Icon
Error

Login


Options
Go to last post Go to first unread
Offline Eric Myers  
#1 Posted : 26 December 2020 23:22:32(UTC)
Eric Myers


Rank: Advanced Member

Groups: Registered
Joined: 03/10/2018(UTC)
Posts: 33
United States

Was thanked: 4 time(s) in 4 post(s)
Hi- I've found an inconsistency when working with temperature units other than an absolute scale.

If I enter a number and multiply by either Fahrenheit or Celsius (°F or °C), the units are applied as I expect.

If I define a variable and assign a value to it, and then multiple by °F or °C, I get an error saying that the variable is not defined. It clearly is defined though, since performing other operations (multiplication, addition, assigning absolute scale temperature units, etc.) works as expected on the variable.

If I make a user-defined version of the temperature unit, assigning it to itself, and then apply the unit to the variable, it works okay.

temp_unit_behavior.png

Can anyone confirm this? I’m using the Mono version of release 7610 on Linux.
temp_bug.sm (5kb) downloaded 5 time(s).

Edited by user 26 December 2020 23:26:09(UTC)  | Reason: Not specified

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

Offline Jean Giraud  
#2 Posted : 27 December 2020 01:14:59(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: Eric Myers Go to Quoted Post
Can anyone confirm this? I’m using the Mono version of release 7610 on Linux.

I can only confirm you are wrongdoing !
t:=*type' insert°C from unit drop down menu
t:=59*'°C ... t=59°C
Offline Eric Myers  
#3 Posted : 27 December 2020 02:00:03(UTC)
Eric Myers


Rank: Advanced Member

Groups: Registered
Joined: 03/10/2018(UTC)
Posts: 33
United States

Was thanked: 4 time(s) in 4 post(s)
Thanks Jean, but it's not my intent to invite critique on my procedure. I've posted a bug report to see if this is a known issue that might be fixed. I understand you have no way to know why I want to go about the assignment in this order, but hopefully it will suffice to say that I have my reasons, and we can avoid side-tracking the topic.

The method I show works fine for any other units I've tried so far, and creating the user-defined °F causes problems in other conversions. I haven't checked earlier versions or non-Mono versions so I don't know how much hope to hold out for a fix, or whether I should just work entirely with absolute temperature units. If anyone has insight on what's going on it would be much appreciated.

Thanks very much,
Eric
Offline Razonar  
#4 Posted : 27 December 2020 03:20:01(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Hi. It seems that Fahrenheit degrees clears t.

Clipboard01.jpg

Originally Posted by: Eric Myers Go to Quoted Post

Can anyone confirm this? I’m using the Mono version of release 7610 on Linux.


Yep. On Windows 10.
Best regards.
Alvaro.
Offline Eric Myers  
#5 Posted : 27 December 2020 05:59:38(UTC)
Eric Myers


Rank: Advanced Member

Groups: Registered
Joined: 03/10/2018(UTC)
Posts: 33
United States

Was thanked: 4 time(s) in 4 post(s)
Thanks very much for looking at that Alvaro. I had only tried numeric evaluation- I get the same result as you with symbolic evaluation.

It looks like you are in even worse shape than I am. The variable is still set to the original value for me after attempting to get a Fahrenheit value from it.
Offline overlord  
#6 Posted : 27 December 2020 14:03:02(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)
Same in here with Mono.

2020-12-27_14-02.png
Offline Jean Giraud  
#7 Posted : 27 December 2020 15:46:25(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)
Eric,
At my age [no more a spring chicken], I hardy heard °F, °K.
1. ITS-90 [International Temperature Scale] primary fixed points are °C
2. Secondary standard BIPM Pt100 is in °C ... at higher temperature too.
You can work user as suggested.

degC.PNG
Users browsing this topic
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.