Re: how to map function with over 1 arguments to list
- To: mathgroup at smc.vnet.net
- Subject: [mg57246] Re: [mg57205] how to map function with over 1 arguments to list
- From: klamser <klamser at t-online.de>
- Date: Sun, 22 May 2005 00:14:10 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
f[x_,y_]=x+y
Apply[f,{{1,1},{2,2},{2,5}},1]
xun schrieb:
>Hi, all,
>
>g[x_]:=x^2;
>g/@{1,2,3} results in{1,4,9}
>
>similarly, how to map f[x_,y_]:=x+y;
>to {1,1},{2,2}?
>
>it seems that f/@{{1,1},{2,2}} doesn't work.
>
>Thx.
>Xun
>
>
>
>
>
>
>
>