Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

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

Search the Archive

strange behavior with Map

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116381] strange behavior with Map
  • From: Robert Rosenbaum <robertr at math.uh.edu>
  • Date: Sat, 12 Feb 2011 05:20:54 -0500 (EST)

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