From: G. A. Edgar on
In article
<1541106249.13818.1277680540812.JavaMail.root(a)gallium.mathforum.org>,
Robert Kaufman <Yearachmeel(a)verizon.net> wrote:

> Hi!
>
> Would someone please show me how to iterate a function
> in Maple.
>
> Respectfully,
>
> Robert Kaufman

> (cos@@5)(0.123);
0.7919707290
> cos(cos(cos(cos(cos(0.123))))); # check
0.7919707290

--
G. A. Edgar http://www.math.ohio-state.edu/~edgar/
From: TCL on
On Jun 28, 10:25 am, "G. A. Edgar" <ed...(a)math.ohio-state.edu.invalid>
wrote:
> In article
> <1541106249.13818.1277680540812.JavaMail.r...(a)gallium.mathforum.org>,
>
> Robert Kaufman <Yearachm...(a)verizon.net> wrote:
> > Hi!
>
> >     Would someone please show me how to iterate a function
> > in Maple.
>
> > Respectfully,
>
> > Robert Kaufman
> > (cos@@5)(0.123);
>
>                                 0.7919707290> cos(cos(cos(cos(cos(0.123))))); # check
>
>                                 0.7919707290
>
> --
> G. A. Edgar                              http://www.math.ohio-state.edu/~edgar/

Oh, that is much better. For general function, say f(x)=x^2+x, we can
do:

>f:=x->x^2+x;
>(f@@5)(0.123);
> .2612524724
or
>(f@@2)(x);
> (x^2+x)^2+x^2+x
TCL
From: TCL on
On Jun 28, 11:05 am, TCL <tl...(a)cox.net> wrote:
> On Jun 28, 10:25 am, "G. A. Edgar" <ed...(a)math.ohio-state.edu.invalid>
> wrote:
>
>
>
>
>
> > In article
> > <1541106249.13818.1277680540812.JavaMail.r...(a)gallium.mathforum.org>,
>
> > Robert Kaufman <Yearachm...(a)verizon.net> wrote:
> > > Hi!
>
> > >     Would someone please show me how to iterate a function
> > > in Maple.
>
> > > Respectfully,
>
> > > Robert Kaufman
> > > (cos@@5)(0.123);
>
> >                                 0.7919707290> cos(cos(cos(cos(cos(0.123))))); # check
>
> >                                 0.7919707290
>
> > --
> > G. A. Edgar                              http://www.math.ohio-state.edu/~edgar/
>
> Oh, that is much better. For general function, say f(x)=x^2+x, we can
> do:
>
> >f:=x->x^2+x;
> >(f@@5)(0.123);
> >                .2612524724
> or
> >(f@@2)(x);
> >          (x^2+x)^2+x^2+x
>
> TCL- Hide quoted text -
>
> - Show quoted text -

@ stands for function composition. We can compose two functions f,g by
f(a)g. For example
>f:=x->x^2;
>g:=x->2*x+1;
>(f@g)(x);
(2x+1)^2
-TCL
From: Robert Kaufman on
Hi!

Bravos to Prof. Edgar! Where did you find it?
It wasn't in any of the manuals that Maple sent along with their disc.

Respectfully,

Robert Kaufman
From: Axel Vogt on
Robert Kaufman wrote:
> Hi!
>
> Bravos to Prof. Edgar! Where did you find it?
> It wasn't in any of the manuals that Maple sent along with their disc.
>
> Respectfully,
>
> Robert Kaufman

Experience, I guess. Every (software) systems needs time to get used to.

BTW if you use the help and search for 'composition' you will find it.