MathGroup Archive 2005

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

Search the Archive

Re (correction): confusion about Thread[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56050] Re (correction): [mg56007] confusion about Thread[]
  • From: "Wolf, Hartmut" <Hartmut.Wolf at t-systems.com>
  • Date: Thu, 14 Apr 2005 08:54:59 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

 

>-----Original Message-----
>From: Wolf, Hartmut 
To: mathgroup at smc.vnet.net
>Sent: Wednesday, April 13, 2005 3:15 PM
>Subject: [mg56050] RE: [mg56007] confusion about Thread[]
>
>
[...]
>
>
>
>To reach what you want, you have to suppress the evaluation of 
>the function, but evalute the lists.
>
>As... 
>
>Thread[f[wLst, zLst, cLst]]
>---> {f[w1, z1, c1], f[w2, z2, c2], f[w3, z3, c3]}
>
>...we see that substituting for f alone is not enough, we have 
>to apply Or to the resulting list, e.g.
                    ^^^^^^^^^^^^^^

>
>
>Thread[f[wLst, zLst, cLst]] /. 
>  f -> (Or @@ ((#1 && #2) || (#1 && #3) || (#2 && #3)) &)
>
>

Such this is nonsense, of course, it should be

Or @@ Thread[f[wLst, zLst, cLst]] /. 
  f -> ((#1 && #2) || (#1 && #3) || (#2 && #3) &)

--
Hartmut Wolf


  • Prev by Date: Legendre Polynomials
  • Next by Date: Position different in 5.0 and 5.1?
  • Previous by thread: Re: Legendre Polynomials
  • Next by thread: Position different in 5.0 and 5.1?