Herzult/SimplePHPEasyPlus

Rings

flavius opened this issue · 3 comments

I think your library is awesome for our production stuff, we've tested it and it gives awesome performance improvements over the alternate + operator.

However what we're missing is the notion of a Ring, which we need for the maths we're doing in our scientific application.

Could you write an implementation for it?

This. I feel there isn't enough abstraction to fully utilize the power of addition. http://en.wikipedia.org/wiki/Ring_(mathematics)

@mkonecny Indeed. We need a redesign.

@flavius Why stop at rings? Why not support any Abelian group? I can't imagine why replacing the internal representation of numbers with sequences of rotations and reflections (see http://en.wikipedia.org/wiki/Symmetry_group) would be anything more than a simple refactoring, right?