Boost logo

Boost :

From: Jan Langer (jan_at_[hidden])
Date: 2003-10-16 14:43:27

Hugo Duncan wrote:
> Deane Yang <deane_yang_at_[hidden]> wrote:
> [snipped good explanation of dimensional analysis]
>> You can do this for any of the dimensions, whether they are
>> fundamental or derived. However, if you choose units for each of the
>> fundamental dimensions, then they naturally induce units for each of
>> the derived dimensions.
> Agreed, but how do you use a unit such as BTU which is not defined
> in terms of units of fundamental dimensions?
> For me this is a fundamental, practical reason to distinguish
> between dimensional analysis ( a library that deals in powers of
> fundamental dimensions) and a units library (that converts between
> quantities of the same, possibly derived, dimensions)

how about:

quantity <double, energy> const btu = 1055 * joules;


jan langer ... jan_at_[hidden]
"pi ist genau drei"

Boost list run by bdawes at, gregod at, cpdaniel at, john at