Boost logo

Boost :

From: Paul A. Bristow (boost_at_[hidden])
Date: 2003-12-16 09:41:16


| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]]On Behalf Of Matthias Schabel
| Sent: Tuesday, December 16, 2003 12:39 AM
| To: Boost mailing list
| Subject: Re: [boost] Re: new compile-time dimensional analysis and
| unitlibrary
|
| There are a couple of options for those who don't feel that degrees and
| radians
| should be classified as units :
|
| 1) continue to use the <cmath> functions and go on your merry way.
| 2) extract the value from the unit like this :
| std::sin(theta.value()+(theta*theta).value())
| 3) convert the units to dimensionless like this :
| std::sin(theta/_radians + (theta/_radians)^2)
| 4) write your own dimensional analysis/unit library and prohibit the
| use of angle tags somehow.

I don't see how anyone can want more options than this ;-)

Paul

Paul A Bristow, Prizet Farmhouse, Kendal, Cumbria, LA8 8AB UK
+44 1539 561830 Mobile +44 7714 33 02 04
mailto:pbristow_at_[hidden]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk