Reasoning purely by symmetry, doesn't it seem that where you are headed here is toward an extended rational polynomial class that handles rational polynomials of a base variable and simple functions of a base variable (such as trig functions, log and exp)?
If so, then having some kind of unified class would probably be a good thing. You could pretty easily support the same functions as the current Polynomial class (derivative, multiply, add, negate and so on). The question of log(-1) and sqrt(-1) is likely to come up, but if you add a convention for complaining about these, then you should be good to go. The next step is to file a JIRA where discussions like this can have a home. On Tue, Mar 17, 2009 at 9:01 AM, Bernhard Grünewaldt < bernh...@gruenewaldt.net> wrote: > Hi, > > I used already the classes of the analysis package: > http://commons.apache.org/math/userguide/analysis.html > > There is already a fine class for Polynomial Functions which can calculate > the derivation: > > PolynomialFunction.derivative() > > > I would like to suggest a class called "RationalFunction" which can do > almost the same but for (you guessed it) Rational Functions. > > Suggested methods are: derivative() , add(RationalFunction r), a.s.o. > > http://en.wikipedia.org/wiki/Rational_function > > If this is something which you would like to have I will start coding it > to provide a patch. > > The next thing is "Trigonometric Functions" and their derivatives: > > > http://en.wikipedia.org/wiki/Trigonometric_function_derivations#Derivatives_of_trigonometric_functions > > It would also be nice to have classes for that type of function. > > > - Bernhard > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- Ted Dunning, CTO DeepDyve