Temperature
absolute temperature
Value
magnitude of a Temperature object
Scale
temperature scale
Calling Sequence
Parameters
Description
Properties of Temperature Objects
Arithmetic with Temperature Objects
Examples
Compatibility
Temperature( v, s )
Value( t )
Scale( t )
type( expr, Temperature )
v
-
: algebraic : expression designating the temperature value
s
: unit : Unit expression designating the temperature scale
t
: Temperature : temperature object
expr
: anything : any Maple expression
The Temperature( v, s ) command returns an absolute temperature object. An absolute temperature is a measure of the amount of heat in a physical object. This is to be distinguished from a relative temperature expression, such as 20*Units:-Unit( degC ), which represents a change in temperature of an object (for example, in space or time).
The value v can be an arbitrary algebraic expression not involving any units.
The temperature scale s is a unit expression of the form Units:-Unit( d ), where d is one of the valid temperature units: degC, degF, K, degR, degRe or degc.
A Temperature object has the type Temperature, and this may be checked by using the type command.
The value (that is, the magnitude) of a Temperature object can be retrieved by using the Value function.
The temperature scale (a unit expression) can be retrieved by using the Scale function.
The difference t1−t2 of two (absolute) Temperature objects t1 and t2 evaluates to a relative temperature expression.
The average t12+t22 of two (absolute) Temperature objects t1 and t2 evaluates to an absolute temperature expression.
The sum tabs+trel of an absolute temperature tabs and a relative temperature trel evaluates to an absolute temperature expression.
More general arithmetic with temperature objects is possible with affine combinations and null combinations of temperatures.
An affine combination of temperatures is an expression of the form ∑i=1n⁡ai⁢ti in which each ti is a Temperature object, and the coefficients ai satisfy ∑i=1n⁡ai=1.
An affine combination of absolute temperatures evaluates to a single absolute temperature. If all the temperature scales are the same, then the temperature scale of the result is the scale of the addends. However, an affine combination of temperatures with heterogeneous temperature scales evaluates to an absolute temperature whose temperature scale is the system default.
A null combination of temperatures is an expression of the form ∑i=1n⁡ai⁢ti in which each ti is a Temperature object, and the coefficients ai satisfy ∑i=1n⁡ai=0.
A null combination of absolute temperatures (such as a difference of absolute temperatures) always evaluates to a relative temperature expression.
If all the Temperature objects in such a combination have the same temperature scale, then the resulting Temperature object will use that temperature scale. Otherwise, the system default temperature scale is used.
Combinations of Temperature objects that are neither affine nor null can be valid as intermediate results of a computation, but they do not typically represent physical concepts. In order to indicate this, they are displayed in red.
The following examples show some basic functionality.
t1≔Temperature⁡20,Units:-Unit⁡degC
t1≔20⁢°C
type⁡t1,Temperature
true
Value⁡t1
20
Scale⁡t1
°C
t2≔Temperature⁡25,Units:-Unit⁡degC
t2≔25⁢°C
The difference between t2 and t1 is a null combination. The result is a relative temperature.
t2−t1
5⁢°C
type⁡t2−t1,Temperature
false
t3≔Temperature⁡30,Units:-Unit⁡degC
t3≔30⁢°C
The average of t1, t2, and t3 is an affine combination. The result is an absolute temperature.
t1+t2+t33
25⁢°C
The same holds for t1+t2−t3.
t1+t2−t3
15⁢°C
t is an affine combination of t1 and t2, the value of which depends on a.
t≔a⁢t1+1−a⁢t2
t≔−5⁢a+25⁢°C
s≔eval⁡t,a=sqrt⁡3
s≔−5⁢3+25⁢°C
evalf⁡s
16.33974596⁢°C
t4≔Temperature⁡50,Units:-Unit⁡degF
t4≔50⁢°F
The sum of four absolute temperatures is not a valid physical quantity. In this case, the temperature scales are different, so they are combined into the default scale, as set using the Units[UseSystem] or Units[UseUnit] commands. The default for this scale is the kelvin scale.
t1+t2+t3+t4
58885⁢K
Dividing the sum by 4 yields the average of the four temperatures, which is a valid absolute temperature.
4
14725⁢K
The following is a null combination.
t1−t2+t3−t4
15⁢K
The Temperature, Value and Scale commands were introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Units
Units,temperature
Download Help Document