Boost logo

Boost :

From: Andy Little (andy_at_[hidden])
Date: 2006-08-30 18:46:02


"David Abrahams" <dave_at_[hidden]> wrote in message
news:87d5aim3d8.fsf_at_pereiro.peloton...

>> typedef complex<resistance> impedance;
>> complex<voltage> v;
>> complex<current> i
>>
>> impedance z = v / i;
>>
>> This is of course an entirely practical example.
>
> Without knowing the details of your library, a well-designed generic
> library usually defines non-intrusive concepts that allow any type to
> satisfy the requirements, given some additional traits and functions.
> There should be no need to write a new quaternion.

Without knowing the details of Your library....etcetera...

One way or another, presenting Maxwells Equations in the form of physical
quantities is a goal of Quan.

Of course whether it has a practical use is another matter :-)

regards
Andy Little


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