commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Brisard <sebastien.bris...@m4x.org>
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())
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?
Best regards,
S├ębastien

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


Mime
View raw message