Re: [Boost-users] Boost.Units documentation

Pieter, In general, equations like these have an implicit offset, so what you really want is T_rel = T_abs - T_offs, as you have written. Especially if it is empirically-derived, polynomial expansions are often used implicitly - that is, the model equations are essentially intended to represent a Taylor (or some other) series expansion. As Steven pointed out, Kelvin is a special case because the offset is defined as zero. These expansions are always done around a specific point and, if you look at the equations for the expansions themselves you will see that they are dimensionally consistent : f(T-T_offs) ~ f(T_offs) + f'(T_offs) (T-T_offs)/1! + f''(T_offs)(T-T_offs)/2! + … -> Unit ~ Unit + Unit/Kelvin (Kelvin) + Unit/Kelvin^2 (Kelvin)^2 + … should also make sense if you change the unit of temperature to something else, which is what you would be doing if you wanted to scale by 0.015...this is only possible if you use relative temperatures. One way to think about it is to try to rewrite the equation so it works correctly if temperatures are specified in Celsius - clearly, you will have to introduce both an offset and a scale factor to get the correct behavior... Matthias
participants (1)
-
Matthias Schabel