I have a function which runs a sum from -integer to integer based on some data, something like, schematically
troublesomefunction[data_,limit_Integer]:=Sum[simplefunction[data,i],{i,-limit,limit}]
I know that troublesomefunction will eventually stay constant once limit is increased beyond a certain point. So I want a way to run troublesomefunction with limit=1, increase limit by one and run troublesomefunction again until I find the fixed point. I can't work out how to use FixedPoint for this, so is there a different function I should be using, or is there a way to apply fixed point to my problem?
As a slightly more solid example, consider
Series[Total[Table[Fibonacci[n] x^n, {n, 3}]]/Total[Table[LucasL[n] x^n, {n, 3}]], {x, 0, 5}]
As you change the value 3 in the sequences you will see that the coefficients in the resultant series vary, then become fixed. So say I want an accurate fifth order series, I want to find what order I need to know the sequences to. The actual function I'm working with is not this one, so an analytic solution would be complicated in general I think.
Thanks.
simplefunction
that exhibits the behavior you describe? $\endgroup$simplefunction
, no? That would greatly help in picking out a cutoff point. Otherwise, you're stuck with using an appropriateWhile[]
loop. $\endgroup$