[squeak-dev] Closure testers needed
Frank Shearar
frank.shearar at angband.za.org
Thu Jul 16 14:51:20 UTC 2009
Ian Trudel wrote:
> SqueakVM-Win32-3.11.3-bin.zip
> Squeak3.10-7159-basic.image
> SqueakV39.sources
>
> All updates applied according to the given protocol.
>
> fib := [:n| n < 2 ifTrue:[1] ifFalse:[(fib value:n-1) + (fib value:n-2)]].
> fib value: 10.
>
> 89
>
> Slight problem here...
>
> /* wxMaxima 0.8.0
>
> (%i1) fib(10);
> (%o1) 55
>
> Ian.
>
>
The next fib is 89, so perhaps wxMaxima uses the sequence 0, 1, 1, 2, 3,
5, ...? I've seen the Fibonacci sequence defined both this way and as
the sequence Andreas uses.
frank
More information about the Squeak-dev
mailing list
|