Yeah -- it'd be rude to just crib everyone else's code & not offer my own up
for ridicule.

2008/10/22 Paul Robinson <[EMAIL PROTECTED]>

>
> On 22 Oct 2008, at 15:31, Francis Fish wrote:
>
> > Small point, and I'd have to check, but I don't think it *has* to
> > start from 1, any pair of positive integers will do. But if it
> > didn't it would invalidate your predicate, unless you add an
> > argument to the method.
>
>
>
> It's a critical point, if true. It would mean the relationship with
> the golden ratio wouldn't work for starters.
>
> I've always assumed that it was 1, 1, etc. however Wikipedia says here:
>
> http://en.wikipedia.org/wiki/Fibonacci_number
>
> "The first number of the sequence is 0, the second number is 1, and
> each subsequent number is equal to the sum of the previous two numbers
> of the sequence itself, yielding the sequence 0, 1, 1, 2, 3, 5, 8, etc."
>
> So, my spec is wrong, but so is yours. :-P
>
> As an additional exercise then, let's see the output being from 0 and
> by default start with 0 and 1, with the option of being able to set
> them to higher values for Francis.
>
> Who is playing then? Anyone? Peer review is a critical part of
> becoming a better programmer you know...
>
> --
> Paul Robinson
>
> http://vagueware.com :: [EMAIL PROTECTED] :: +44 (0) 7740 465746
>
> Vagueware Limited is registered in England/Wales, number 05700421
> Registered Office: 3 Tivoli Place, Ilkley, W. Yorkshire, LS29 8SU
> Correspondence:   55 Velvet Court, Granby Row, Manchester, M1 7AB
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to