Minus kelvin - лишние скобки - Messages
It is important to note that temperature is a variable unit in SMath and not a function as it is in Mathcad.
Regardless, the first line is converting 10°C --> 283.15K; and then applying the unary operator of minus (-) to the value; thus: -283.15K; Make sure you apply the unit °C to -10 and not just 10; use the space bar to group your operations correctly.
When in doubt: use parenthesis for grouping your operations.
May this be of Good Help,
- SK Kenny Lemens, P.E. ᵂᴵ
WroteGreetings,
It is important to note that temperature is a variable unit in SMath and not a function as it is in Mathcad.
Regardless, the first line is converting 10°C --> 283.15K; and then applying the unary operator of minus (-) to the value; thus: -283.15K; Make sure you apply the unit °C to -10 and not just 10; use the space bar to group your operations correctly.
When in doubt: use parenthesis for grouping your operations.
May this be of Good Help,
- SK Kenny Lemens, P.E. ᵂᴵ
2+2*2=8
2+(2*2)=6
Wrote2+2*2=8
I tried to duplicate this result, but was unsuccessful. However, the following will achieve '8':
or
2*(+2)*2=8
On the larger issue, I would refer you to the following handbook; it can be downloaded via your Extension Manager (i.e., [Tools] -> [Plugins...] -> [Interactive books]):
There is a section that reviews the Priority of operators; you will see that units are level 1, whereas unary is level 2: thus the disconnect for negative numbers.
Those respective sheets are as follows:
- File not found.
- File not found.
May this be of Good Help,
- Kenny Lemens, P.E. ᵂᴵ
WroteSo you have to use parenthesis in SMath
Golden rule from numerical priority rule(s)
Not unique to this application.
temperature.sm (4 KiB) downloaded 28 time(s).
WroteGreetings,
It is important to note that temperature is a variable unit in SMath and not a function as it is in Mathcad.
Regardless, the first line is converting 10°C --> 283.15K; and then applying the unary operator of minus (-) to the value; thus: -283.15K; Make sure you apply the unit °C to -10 and not just 10; use the space bar to group your operations correctly.
When in doubt: use parenthesis for grouping your operations.
Ok
I put my negativ temp like t2=(-43), ant t1=20, all in degC
Now I got this in Smath editor
t1-t2 = 63K it is OK
but t1-t2 = -210,15degC
it works like this: t1-t2 = ((20+273) - (-43 + 273) - 273) = -210,15degC THIS IS WRONG. there should not be extra (-273) on the end when you enter degC in the placeholder of expresion for convert from K to degC
What is right
t1-t2 = 20-(-43) = 63degC
t1-t2 = (20+273) - (-43+273) = 63K
Difference deltaT/deltat do not depend of scale (for degC and K for sure)
so definitely there is a bug in conversion (adlist when conversion is done by manipulating placeholder behind result)
WroteI put my negativ temp like t2=(-43), ant t1=20, all in degC
Now I got this in Smath editor
t1-t2 = 63K it is OK
but t1-t2 = -210,15degC
it works like this: t1-t2 = ((20+273) - (-43 + 273) - 273) = -210,15degC THIS IS WRONG. there should not be extra (-273) on the end when you enter degC in the placeholder of expresion for convert from K to degC
What is right
t1-t2 = 20-(-43) = 63degC
t1-t2 = (20+273) - (-43+273) = 63K
Difference deltaT/deltat do not depend of scale (for degC and K for sure)
so definitely there is a bug in conversion (adlist when conversion is done by manipulating placeholder behind result)
This is not a bug, this is how SMath works.
You have to use delta temperatures for that kind of calculations.
Unfortunately there is no easier way.
If you really need to calculate without delta temperatures,
You can use a custom equation/function like this.
Regards
-
New Posts
-
No New Posts