Re: Don't understand the response

*To*: mathgroup at smc.vnet.net*Subject*: [mg97636] Re: Don't understand the response*From*: Bill Rowe <readnews at sbcglobal.net>*Date*: Tue, 17 Mar 2009 05:02:10 -0500 (EST)

On 3/16/09 at 4:24 AM, dglawler at comcast.net (dglawler) wrote: >Don't understand the result below. Can someone gently unpack this >for me? True^2?? >In[3308]:= (1 <= 4) And (outB[[1 + 1 ;; 3, 1]] == >ConstantArray[0, {3 - (1 + 1) + 1}]) >Out[3308]= And True^2 You have set up a multiplication where you didn't intend. That is 1 <= 4 evaluates to True and (outB[[1 + 1 ;; 3, 1]] == ConstantArray[0, {3 - (1 + 1) + 1}]) must have evaluated to True. So your input becomes True And True which is seem by Mathematica as a multiplication and evaluates to And True^2 Replace And with the appropriate infix notation (&&) then see if you get what you expect.