
7 Mar
2007
7 Mar
'07
5:44 p.m.
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.