Hi Brendan,

I think "Math::Interval" is a fine name.  If anyone is looking for a
module which handles intervals, they'll find it immediately.  The main
question you seemed to have about this is:

> Should I create one module Math::Interval or a hierarchy such as:
> Math::Interval
> Math::Interval::Arithmetic
> Math::Interval::Trigonometric
> Math::Interval::Logarithmic

That seems to be in relation to:

> This module would contain the basic definition and support
> functions for  intervals.  I think it should also include the
> basic arithmetic operations (+, -, *, /) but I have received the
> suggestion to break those out into a separate module 
> (Math::Interval::Arithmetic).  That would allow other people to
> add their own extensions.

Not having seem your code, I'm at a loss to give you a clear answer,
but I can give you a good rule of thumb:  so long as you create a good,
clear API which will not change (unless labeled alpha, experimental,
etc.), don't worry about the module organization as much.  Write the
code you need and use it.  As you use it more, you'll have a better
understanding of how things should naturally be decomposed.  You can do
that yourself or, if enough others are interested, post it to the CPAN
and ask for feedback.

I'd also strongly recommend that you post this to Perlmonks.  There are
one or two mathematicians running around there.

(Oh, and tell Wren I said "hi" :)

Cheers,
Ovid

-- 
If this message is a response to a question on a mailing list, please send 
follow up questions to the list.

Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/

Reply via email to