Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Composition of Expansions

0 views
Skip to first unread message

Scott Guthery

unread,
Mar 8, 2005, 5:34:47 AM3/8/05
to
Bf[f_] := Sum[f[i/100]B[i,100,x],{i,0,100}]

gives the Bernstein expansion of f.

Df[f_] := 1-Bf[f]

is a function of interest. I want to work with

Df[Df[Df[...[Df[g]]...]]] for some g[x_] := ...

i.e Bernstein expansions of Bernstein expansions.

As a simple example, suppose g[x_] := x^2 and try

Plot[Composition[Df, Df[g]], {x, 0, 1}]

Composition[Df, Df[g]] does not compute.

Thanks for any insight.

Cheers, Scott

<https://mail2.mobile-mind.com/exchange/sguthery/Drafts/RE:%20%20New%20in%205.1.1_x003F_.EML/#>

David Bailey

unread,
Mar 9, 2005, 6:59:34 AM3/9/05
to
Hi,

Composition is an operation that takes two functions and returns a function:

h = Composition[f, g]

Composition[f, g]

h[x]
f[g[x]]

However, for repeated application of the same function, it is easier to
use Nest:


Nest[f, x, 6]
f[f[f[f[f[f[x]]]]]]

Regards,

David Bailey
dbaileyconsultancy.co.uk

0 new messages