Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1999
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1999

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

Search the Archive

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

  • To: mathgroup at smc.vnet.net
  • Subject: [mg19881] Re: [mg19873] Re: [mg19819] F[f_,x_]:=f[x] ?
  • From: "Andrzej Kozlowski" <andrzej at tuins.ac.jp>
  • Date: Sun, 19 Sep 1999 18:47:32 -0400
  • Sender: owner-wri-mathgroup at wolfram.com

This might have unintended consequences, e.g.:

In[1]:=
Outer[MapAll, {f, g}, {x[1], y[1]}]
Out[1]=
{{f[x[f[1]]], f[y[f[1]]]}, {g[x[g[1]]], g[y[g[1]]]}}

while

In[2]:=
Outer[#1[#2] &, {f, g}, {x[1], y[1]}]
Out[2]=
{{f[x[1]], f[y[1]]}, {g[x[1]], g[y[1]]}}
--
Andrzej Kozlowski
Toyama International University
JAPAN
http://sigma.tuins.ac.jp
http://eri2.tuins.ac.jp


----------
>From: BobHanlon at aol.com
To: mathgroup at smc.vnet.net
>To: mathgroup at smc.vnet.net
>Subject: [mg19881] [mg19873] Re: [mg19819] F[f_,x_]:=f[x] ?
>Date: Sun, 19 Sep 1999 01:20:55 -0400
>

> Patrick,
>
> MapAll seems to work:
>
> MapAll[f, x]
>
> f[x]
>
> Outer[MapAll, {f, g}, {x, y}]
>
> {{f[x], f[y]}, {g[x], g[y]}}
>
> Bob Hanlon
>
> In a message dated 9/17/1999 10:58:23 AM, p_mclean at postoffice.utas.edu.au
> 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].
>>
>>For example,
>>
>>Outer[F,{f,g},{x,y}]
>>
>>will give:
>>
>>{{f[x],f[y]},{g[x],g[y]}}.
>>
> 


  • Prev by Date: Re: questions about delayed expression.
  • Next by Date: Re: questions about delayed expression.
  • Previous by thread: Re: F[f_,x_]:=f[x] ?
  • Next by thread: Re: F[f_,x_]:=f[x] ?