HP Forums
WP34S Fibonacci function - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: WP34S Fibonacci function (/thread-230560.html)

WP34S Fibonacci function - wildpig - 09-01-2012

I am guessing that the one use in Wp34S use the equation with golden ratio constant to directly calc the fib term, and not by adding terms? fib(20) and fib(1700) takes same amount of time on wp34s

Re: WP34S Fibonacci function - Paul Dale - 09-01-2012

Kind of. It calculates the result directly in real and complex modes. In integer mode it uses repeated addition.

- Pauli

Re: WP34S Fibonacci function - wildpig - 09-01-2012

really? so if i am in integer mode it actually would do addition of terms? interesting...

Re: WP34S Fibonacci function - Walter B - 09-02-2012

But not too exciting: FIB(93) is the limit for UNSIGNed integers, then it's going to overflow. E.g. FIB(100) simply returns zero with flag B set.