MathGroup Archive 2011

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

Search the Archive

strange behavior with Map


This doesn't seem right:


In[181]:= Map[Function[x, 2], {{1, 2}, {1, 2}}, 2]

Out[181]= {2, 2}

In[180]:= Map[Function[x, 0 x + 2], {{1, 2}, {1, 2}}, 2]

Out[180]= {{2, 2}, {2, 2}}


Best,
Robert


  • Prev by Date: Re: Mathematica 8 install - ListPlot not working
  • Next by Date: solution of equation
  • Previous by thread: ButtonFunction for grid of custom Buttons
  • Next by thread: Re: strange behavior with Map