Displaying 1 result from an estimated 1 matches for "fibonacci2".
Did you mean:
fibonacci
2004 Feb 03
3
Implementating streams in R
...gence" by G. Luger.
I have tested it with the Fibonacci example in the same book (see examples
below). It works
but I do run into a problem when I try to generate fibonacci series more
than 25 elements.
> accumulate.into.list(25,fibonacci.stream(0,1))
Error in cons.stream(fibonacci1 + fibonacci2,
fibonacci.stream(fibonacci2, : evaluation is nested too deeply: infinite
recursion?
Traceback show that the call stack has 101 elements at this point. What is
the parameter
limiting the number of recursive calls to 100? What is its relation to the
"expressions" setting
in options(...