The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

WP34S Fibonacci function
Message #1 Posted by wildpig on 1 Sept 2012, 8:59 p.m.

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
Message #2 Posted by Paul Dale on 1 Sept 2012, 9:02 p.m.,
in response to message #1 by wildpig

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

- Pauli

            
Re: WP34S Fibonacci function
Message #3 Posted by wildpig on 1 Sept 2012, 9:34 p.m.,
in response to message #2 by Paul Dale

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

                  
Re: WP34S Fibonacci function
Message #4 Posted by Walter B on 2 Sept 2012, 2:25 a.m.,
in response to message #3 by wildpig

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.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall