Boost logo

Boost :

From: Steven Watanabe (steven_at_[hidden])
Date: 2007-03-05 15:54:52


Dave Steffen <dgsteffen <at>> writes:

> a) It might be handy, though, to have (for example) a log function
> that enforces unitless quantities. For example,
> log ( velocity * time / meters )
> is fine, but if you forget to multiply by the time, you get a
> helpful error message.
> b) It might also be handy, if possible, to have some functions that
> take units and know what to do; for example, sqrt (m*m) properly
> returns meters, and so forth.


We already have sin/cos &c.

We don't have sqrt but root<2>(m * m) will give
give the correct answer (albeit inefficiently).
I'll look through cmath and add all the applicable

In Christ,
Steven Watanabe

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