|
Boost : |
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2001-04-24 08:54:08
I think this is definitely a very important facility,
but should it also be tied up with input and output of units,
including SI units?
So we can read files like:
teabag 1 (dimensionsless item!?!)
sugar 1 teaspoon
milk 1 tablespoon
water at 100 degrees Celsius 250 ml
...
I have some code which tries to do this - but it gets jolly complicated!
Paul
> -----Original Message-----
> From: e_d_k_at_[hidden] [mailto:e_d_k_at_[hidden]]
> Sent: Monday, April 23, 2001 10:59 PM
> To: boost_at_[hidden]
> Subject: [boost] Any Interst in Dimentional Anaysis
>
>
> I have a Dimentional Analysis Library I have devveloped. Ity
> allows code to be written like this:
>
> Distance l;
> Volume v;
> Speed s;
> Density d;
> Mass m;
> Energy e
>
>
> v = 12 * cc;
> d = 12 * Kg / teaspoon;
> m = d * v;
> l = 1.3 * rods;
> s = 23 * mph;
> e = 0.5 * m * pow<2>(v);
>
>
> If there are any errors in dimentioanality it will generate a
> compile error.
>
> -EdK
>
>
>
>
> To unsubscribe, send email to: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
>
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk