Am 12.01.2015 um 15:18 schrieb Ralf Stephan:
>
> Initially, I used the name "guess" to do 1. finding of linear recurrence
> and 2. putting
> into rsolve() for the closed form. Sergey thinks the user can figure out 2)
> herself, and
> so needs a command just for 1). All in all there are three possibilities:
>
> A. leave it as is with the name "guess" or a better one;
> B. instead have "find_linear_recurrence" or just "find_recurrence";
> C. have both A) and B)
If the result of (1) could conceivably every be useful to anybody else
without having it put (2), then (1) should go into a separate function.
You can still offer a second function that does the guess+rsolve combo.
Don't worry too much about getting it right from the start.
It's too easy to fine-tune some minor detail, but only after the code
hits the road will people find the glaring omission, easy to see in
20/20 hindsight.
IOW it's more important to make the code flexible and easy to change
rather than to make it perfect - perfection requires multiple iterations
and, more often than not, a full rewrite or two (or three or four...
been there, done that, got all the t-shirts...)
Just my 2c.