Boost logo

Boost :

From: Matthias Troyer (troyer_at_[hidden])
Date: 2004-01-09 09:14:20


On Jan 9, 2004, at 8:57 AM, Dan W. wrote:

> Andy Little wrote:
>> my lib makes a point of not changing si OR non-si units unnecessarily
>> during
>> addition.
>
> Good!
>
> I also have another argument why the dimensional power type should be
> a template plug-in:
>
> e^(-j*pi) = 1.0
>
> There may be situations where irrational and imaginary powers are
> needed, even when the final result is intended to be every-day
> quantities. Complex powers are not unfathomable.

Sorry, but I do not understand the problem with units in the context of
this exp() function. Any argument to exp(), log(), sin(), cos() or
similar functions needs to be a pure dimensionless number. Where is the
problem here?

Matthias


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