Fibonacci number computation

Sisyphus sisyphus1 at optusnet.com.au
Wed Jul 22 10:54:19 CEST 2009


----- Original Message ----- 
From: "Chris Kajary" <ckajary2881 at rogers.com>

> I've looked at the source code for mpz_fib_uiand mpz_fib2_ui, and I'm 
> having trouble understanding it mainly because of all the low-level C 
> semantics involving sizes. Is there a way for me to obtain C# code or 
> pseudo-code for your implementation of the Fibonacci number computation?
>

There's an entry in the Manual that may help:
http://gmplib.org/manual/Fibonacci-Numbers-Algorithm.html#Fibonacci-Numbers-Algorithm

Cheers,
Rob 



More information about the gmp-discuss mailing list