commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: [math] suggesting rational function and trigonometric functions classes
Date Tue, 17 Mar 2009 16:36:08 GMT
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 <
bernhard@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-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>


-- 
Ted Dunning, CTO
DeepDyve

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message