commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Brisard <>
Subject [math] Add methods opposite() and inverse() to o.a.c.m.FieldElement
Date Tue, 04 Oct 2011 03:22:37 GMT
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())
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?
Best regards,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message