commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Al Chou <>
Subject RE: [math] proposed ordering for task list, scope of initial release
Date Tue, 10 Jun 2003 07:54:53 GMT
--- Brent Worden <> wrote:
> > -----Original Message-----
> > From: Phil Steitz []
> > Sent: Friday, June 06, 2003 12:21 PM
> > * Exponential growth and decay (set up for financial
> > applications) I think this
> > is just going to be a matter of finding the right formulas to add
> > to MathUtils.
> >  I don't want to get carried away with financial computations,
> > but some simple,
> > commonly used formulas would be a nice addition to the package.
> > We should also
> > be thinking about other things to add to MathUtils -- religiously
> > adhering to
> > th guiding principles, of course.  Al's sign() is an excellent
> > example of the
> > kind of thing that we should be adding, IMHO.
> Things that might be added:
> Average of two numbers comes up a lot.

Do we muddy the class hierarchy by putting such a thing into MathUtils rather
than the stat subtree?

> Something similar to JUnit's assertEquals(double expected, double actual,
> double epsilon).

Is JUnit's license ( Apache

> Simple methods like isPositive, isNegative, etc. can be used to make boolean
> expressions more human readable.

I'm willing to build those two on top of sign (I'm so generous with my coding
time, eh? <g>).  Are those two sufficient?  sign treats 0 as positive, which
may not be desirable.

> Some other constants besides E and PI: golden ratio, euler, sqrt(PI), etc.

That would be nice, though we should consider which ones are really needed
generally.  I personally love the lore of constants, of which there are more
than you might imagine (see

> I've used a default error constant several places.  It would be nice to come
> up with a central location for such values.

Or at least define a consistent interface that could be implemented by whatever
needs that.


Albert Davidson Chou

    Get answers to Mac questions at .

Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).

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

View raw message