MathGroup Archive 1999

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

Search the Archive

Re: F[f_,x_]:=f[x] ?


Tim Dellinger <tdelling at ews.uiuc.edu> wrote in message
news:7s1ppu$9o4 at smc.vnet.net...
> p_mclean at postoffice.utas.edu.au (Patrick McLean) writes:
>
> >What is the name of the in-built Mathematica function that plays the role
> >of F in te following:
>
> >F[f_,x_]:=f[x].
>
>
> I think you're looking for Apply[].
>
>
> --
> Tim Dellinger                                www.ews.uiuc.edu/~tdelling
> tdelling at uiuc.edu
>

{Apply[f, x], Apply[f, g[x]]}

{x, f[x]}

But

Apply[f, {g[x]}]

f[g[x]]

Map[f, g[x], {0}]

f[g[x]]

I notice that  Steven Skiena uses the first form in the Combinatorica
package.


--
Allan
---------------------
Allan Hayes
Mathematica Training and Consulting
Leicester UK
www.haystack.demon.co.uk
hay at haystack.demon.co.uk
Voice: +44 (0)116 271 4198
Fax: +44 (0)870 164 0565




  • Prev by Date: Real roots and other assumptions...
  • Next by Date: Re: Re: Re: Re: Mathematica can't win against Tiger Woods
  • Previous by thread: Re: Re: F[f_,x_]:=f[x] ?
  • Next by thread: Re: F[f_,x_]:=f[x] ?