Re: [lang] Fractions

2003-08-14 Thread Henri Yandell
My mistake. Are we talking about 0/0 ? I was thinking 0/x. 0/0 is as Phil says, unknown until you differentiate. 1 is a nice answer as it is a nice average for a slope. Slope is a positive fraction, and 1 is the middle number out of the positive fractions. Not the mathematical way I know, but it

Re: [lang] Fractions

2003-08-14 Thread Phil Steitz
Age old question. From a purely mathematical standpoint, this is an "indeterminate form" -- i.e. not strictly meaningful other than as a limit. There are decent practical arguments, however, for assigning the value 1. See http://mathforum.org/dr.math/faq/faq.0.to.0.power.html for some references

Re: [lang] Fractions

2003-08-14 Thread Henri Yandell
I hope not. 0^x=0 x^0=1 looks like a good excuse for a nice looping unit test :) -10->10 for each, cover the boundary case or some such. On Thu, 14 Aug 2003, Stephen Colebourne wrote: > Patch applied. > > Q: Is a zero fraction to the power of one == one ??? > > If not, the code is wrong. > > S

Re: [lang] Fractions

2003-08-14 Thread Stephen Colebourne
Leave as is then Stephen - Original Message - From: "Henri Yandell" <[EMAIL PROTECTED]> To: "Jakarta Commons Developers List" <[EMAIL PROTECTED]> Sent: Thursday, August 14, 2003 1:12 AM Subject: Re: [lang] Fractions > > My mistake. Are we talking a

Re: [lang] Fractions

2002-12-22 Thread Stephen Colebourne
Fraction class added to math subpackage, based on this class. Thanks. Stephen - Original Message - From: <[EMAIL PROTECTED]> To: "Stephen Colebourne" <[EMAIL PROTECTED]> Sent: Friday, November 15, 2002 5:29 PM Subject: RE: [lang] Fractions > Here's Fractio

[lang] Fractions

2002-11-14 Thread Stephen Colebourne
I've taken a quick look, some comments: - I would like to see Fraction be immutable final fields are private final get methods - I would like to see if else statements with {} brackets to conform with our coding standards - I would like to see an Apache licence and package, to confir