how to map function with over 1 arguments to list
- To: mathgroup at smc.vnet.net
- Subject: [mg57205] how to map function with over 1 arguments to list
- From: "xun" <xiaoxun at gmail.com>
- Date: Fri, 20 May 2005 04:44:30 -0400 (EDT)
- Organization: The Chinese University of Hong Kong
- Sender: owner-wri-mathgroup at wolfram.com
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
- Follow-Ups:
- Re: how to map function with over 1 arguments to list
- From: János <janos.lobb@yale.edu>
- Re: how to map function with over 1 arguments to list
- From: Sseziwa Mukasa <mukasa@jeol.com>
- Re: how to map function with over 1 arguments to list
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Re: how to map function with over 1 arguments to list