MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: sequence of functions


Yes, indeed, wrapping it with Evaluate did it. Thanks, Heike.

Bobby, f[n_][x_] :=  f[n][x] = ... results in caching for not only
each n and each x.

Dana, how did you apply FindSequenceFunction to get the direct
formula?!

Thanks
Igor



On Jul 9, 11:42 pm, Heike Gramberg <heike.gramb... at gmail.com> wrote:
> What about
>
> f[0] = Function[x, x (1 - x)]
> f[n_] := f[n] =
>    Function[x, Evaluate[Simplify[f[n - 1][2 x] + f[n - 1][2 x - 1]]]]=
;
>
> Then
>
> f[2][x];
> ?f
>
> returns:
>
> Global`f
> f[0]=Function[x,x (1-x)]
> f[1]=Function[x$,-2 (1-2 x$)^2]
> f[2]=Function[x$,-20+64 x$-64 x$^2]
> f[n_]:=f[n]=Function[x,Evaluate[Simplify[f[n-1][2 x]+f[n-1][2 x-1]]]]
>
> Heike



  • Prev by Date: Re: Incredible slow Plot
  • Next by Date: Re: How to write a "proper" math document
  • Previous by thread: Re: sequence of functions
  • Next by thread: Re: sequence of functions