On 10/3/11 8:22 PM, Sébastien Brisard wrote:
> Good morning everyone,
> I would like to add the above mentioned methods to FieldElement. This
> would avoid awkward commands such as
> x.getField().getZero().substract(x) (for x.opposite())
> and
> x.getField().getOne().divide(x) (for x.invert()).
> It's not essential, but I think it would be useful. Besides, I don't
> think it would bloat the interface, since opposite and inverse are
> mathematical notions which are intrinsic to fields.
> What do you think?

+1 to add both of these, though I would suggest one of the following
pairs of names:
0) negate, invert
1) opposite, reciprocal
2) additiveInverse, multiplicativeInverse

Probably 2) is clearest, but a bit long.  I am fine with any of them.

Phil
> Best regards,
> Sébastien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to