MathGroup Archive 2001

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

Search the Archive

Thread and MapThread


Dear MathGroup,

Here is a function:

ftest[x_, y_] := {f1[x], f2[y]}

Why does the following work...

MapThread[ftest, {{x1, x2, x3}, {y1, y2, y3}}]
{{f1[x1], f2[y1]}, {f1[x2], f2[y2]}, {f1[x3], f2[y3]}}

...but the following does not work.

Thread[ftest[{x1, x2, x3}, {y1, y2, y3}]]
{f1[{x1, x2, x3}], f2[{y1, y2, y3}]}

David Park
djmp at earthlink.net
http://home.earthlink.net/~djmp/ 


  • Prev by Date: Re: Re: Exponential Equations
  • Next by Date: sinosidal circle equation
  • Previous by thread: IMO 2001 Medalists Announced
  • Next by thread: Re: Thread and MapThread