From: Noah Roberts (roberts.noah_at_[hidden])
Date: 2007-03-07 12:44:56
Noah Roberts wrote:
> You could say that t^x is a dimensionless quantity and tell people to
> multiply that by 1 * whatever dimensions they expect. I don't like that
> idea though because it doesn't really convey the importance that they
> get it right that breaking out of the static system does. When you have
> to cast out of the quantity system into doubles you're going to be careful.
Maybe I'm wrong on that assumption. Thinking more about it that might
be just what is needed. Assuming some EQ t = t^x you could do:
// this it total make believe...
quantity<temp> t = 5 * F;
quantity<nodim> x = 3.14;
t = pow(t, x) * temp() * F; // omit last part?
Worth thinking about anyway.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk