2012/3/5 Sébastien Brisard <sebastien.bris...@m4x.org>: > Le 5 mars 2012 09:57, Sébastien Brisard <sebastien.bris...@m4x.org> a écrit : >> Hi, >> I would like to make the following addition to the FieldElement<T> interface: >> T divide(int n) >> which would formally be defined as >> this.divide(n) = this.divide(this.getOne().multiply(n)). >> >> This would simplify some expressions, eg integration of polynomials (a >> * x**k becomes a / (k+1) * x ** (k+1)). >> >> What do you think? >> Sébastien > > Please note that the change would hardly be noticeable, as many of the > classes implementing FieldElement already implement divide(int). > Sébastien
Also, adding a method to an interface is binary compatible. It is not source compatible. Sebastian --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org