|
[Date Index]
[Thread Index]
[Author Index]
Re: F[f_,x_]:=f[x] ?
- To: mathgroup at smc.vnet.net
- Subject: [mg19886] Re: F[f_,x_]:=f[x] ?
- From: "Allan Hayes" <hay at haystack.demon.co.uk>
- Date: Sun, 19 Sep 1999 18:47:35 -0400
- References: <7rsi9t$3im@smc.vnet.net> <7s1ppu$9o4@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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] ?
|