Completly static Laurent's polynomials

Meta jared771 at gmail.com
Mon Jan 27 05:18:05 PST 2014


On Monday, 27 January 2014 at 11:15:36 UTC, matovitch wrote:
> Hello !
>
> Yesterday, I started a project to implement completly static 
> Laurent's polynomials (i.e. polynomials formed by z^n and z^-n 
> monomials).
> I thought I could represent these polynomials with an immutable 
> range of Tuple!(numeric_type, int).
>
> I've tried (and failed) to implement the addition here :
>
>     https://github.com/matovitch/StaticLaurent
>
> Is my goal achivable ? How would you do it ?
>
> ps : I am a *total beginner* waiting for any advice(s).

Immutable and ranges do not mix very well. Can you include some 
information on what the exact problem is?


More information about the Digitalmars-d-learn mailing list