MathGroup Archive 2005

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

Search the Archive

Re: how to map function with over 1 arguments to list


  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
>
>
>
>
>
>
>  
>



  • Prev by Date: Bode Plots in Mathematica
  • Next by Date: Re: How to Clear y'[0]
  • Previous by thread: Re: how to map function with over 1 arguments to list
  • Next by thread: Re: how to map function with over 1 arguments to list