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

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline OchkovVF  
#1 Posted : 16 May 2024 07:41:46(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 415
Man
Russian Federation

Was thanked: 41 time(s) in 38 post(s)
S.png
S.sm (21kb) downloaded 4 time(s).

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

Offline mkraska  
#2 Posted : 16 May 2024 12:15:01(UTC)
mkraska


Rank: Advanced Member

Groups: Registered
Joined: 15/04/2012(UTC)
Posts: 2,023
Germany

Was thanked: 1153 time(s) in 739 post(s)
Re-defining units is actually calling for trouble. In the given case, re-defining °C does not switch off the conversion mechanism, which is triggered when displaying results in non-absolute temperature units (which does not happen when you use the non-unit custom constant °C). I would not call this a bug, because re-defining units is nothing which I would expect to be supported and consistently handled. One might call it a bug, that re-definition of units is possible at all (just as with the imaginary unit, which unfortunately is re-defined if a value is assigned to the variable i).

Worksheet1.png

Edited by user 16 May 2024 12:17:29(UTC)  | Reason: Not specified

Martin Kraska

Pre-configured portable distribution of SMath Studio: https://smath.com/wiki/SMath_with_Plugins.ashx
thanks 1 user thanked mkraska for this useful post.
on 16/05/2024(UTC)
Offline Razonar  
#3 Posted : 16 May 2024 13:25:01(UTC)
Razonar


Rank: Advanced Member

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

Was thanked: 888 time(s) in 564 post(s)
Hi. The result of solve is thinking that the variables can be complex. To obtain a more concrete result, you can use isolate. And this allows the more comfortable use of the units, without the need to "sterilize" them (Pompelmo dixit)

S.sm (16kb) downloaded 4 time(s).

Clipboard01.png

Best regards.
Alvaro.

Note: For me, the convention that uppercase letters represent intensive variables and lowercase letters extensive variables is very practical. Thus, temperature and pressure always appear in capital letters, and volume, enthalpy, entropy and energy can be upper or lower case. The units, if intensive, will say whether they are volumetric, mass or molar quantities.

Edited by user 16 May 2024 13:27:35(UTC)  | Reason: Not specified

thanks 1 user thanked Razonar for this useful post.
on 16/05/2024(UTC)
Offline OchkovVF  
#4 Posted : 16 May 2024 19:09:17(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 415
Man
Russian Federation

Was thanked: 41 time(s) in 38 post(s)
I'm completely lazy - I'm solving the simplest equation on the computer, not in my head!
16-12-T-Gamma.png
16-12-T-Gamma.sm (11kb) downloaded 4 time(s).

Edited by user 16 May 2024 20:01:17(UTC)  | Reason: Not specified

Offline OchkovVF  
#5 Posted : 16 May 2024 19:32:27(UTC)
OchkovVF


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 06/04/2023(UTC)
Posts: 415
Man
Russian Federation

Was thanked: 41 time(s) in 38 post(s)
I remember one undeserved math insult at school. The teacher asked me what the sine of 45 degrees is equal to. I didn't try to memorize the table of trigonometric functions, but tried to calculate the required values in my head. So, I think, the angle of an isosceles right triangle is 45 degrees. Its legs are 1, then the hypotenuse, according to the Pythagorean theorem, is equal to the root of two. And tangent is the ratio of the opposite side to the hypotenuse. My answer was one divided by the root of two! The teacher said: “I’ll put this 1 (very bad school ball in USSR) in the journal for you!” The sine of 45 degrees is equal to the root of two divided by two!
This resentment repeated itself in my adult years. I wrote a textbook on thermodynamics, or rather, on using packages with units of measurement to solve thermodynamics problems. It contained the entry T := 18°C. This textbook caught the eye of a venerable scientist. He leafed through it and said: “The author is an illiterate person in thermodynamics! If temperature on the Celsius scale is entered into the calculation, it is entered into the variable t. The absolute temperature in Kelvin is written into the variable T!”

Edited by user 16 May 2024 19:44:52(UTC)  | Reason: Not specified

thanks 1 user thanked OchkovVF for this useful post.
on 17/05/2024(UTC)
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.