Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #15983

strange behavior with Map

From Robert Rosenbaum <robertr@math.uh.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject strange behavior with Map
Date 2011-02-12 10:20 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ij5mtu$jmg$1@smc.vnet.net> (permalink)

Show all headers | View raw


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

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

strange behavior with Map Robert Rosenbaum <robertr@math.uh.edu> - 2011-02-12 10:20 +0000

csiph-web