Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Thread behaviour

  • To: mathgroup at
  • Subject: [mg57952] Re: Thread behaviour
  • From: "Jens-Peer Kuska" <kuska at>
  • Date: Tue, 14 Jun 2005 05:10:17 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d8jlgk$stn$>
  • Sender: owner-wri-mathgroup at


Mathematica evaluates the inner expession first 
Thread[k[a+b,c d],Plus]

evaluates first to


and than there is nothing to thread any more


"Dick Barends" <dick.barends at> schrieb im 
Newsbeitrag news:d8jlgk$stn$1 at
> Hallo,
> k[x_,y_] = x^2+y^2
> Thread[k[a+b,c d],Plus]
> gives: (a+b)^2+c^2 d^2
> I would expect: a^2 + (c d)^2 + b^2 + (c d)^2 
> (See below)
> -----------------
> When I use:
> Thread[m[a+b, c d],Plus]
> gives: m[a, c d] + m[b, c d]
> This is what should happen.
> What gives "m" a different solution than "k"????
> I hoop some of you will answer:-)
> greetings
> Dick

  • Prev by Date: Re: ArrayPlot: ColorRules v. ColorFunction
  • Next by Date: Re: Q: Thread behaviour
  • Previous by thread: Re: spotlight escape sequences
  • Next by thread: For Loop and Array related