Mathematica 9 is now available

Thread

Usage

Thread[f[args]] f 贯穿作用于出现在args中的任何列表.
Thread[f[args], h] f 贯穿作用于出现在args中的头为h 的任何对象.
Thread[f[args], h, n] f 贯穿 作用于出现在前n个args中的头为h 的任何对象.
Thread[f[args], h, -n] 贯穿作用于后n个args.
Thread[f[args], h,  m, n ]贯穿作用于m到n的参数上.


Notes

• 例如: Thread[f[ a,b , c,  d,e ]]LongRightArrow .
• 有属性Listable的函数自动贯穿作用于列表。
• 在头是h的指定的args中所有的元素必须有相同的长度。
• 没有头h的参数和在有头h的参数中的元素拷贝一样多次。
Thread 使用标准的序列指定 (参见A.3.5节).
• 参见Mathematica 全书: 2.2.10.
• 同时参见: Distribute, Map, Inner, MapThread.
Further Examples

In[1]:=  

Out[1]=

The Log function threads over lists but not over equations.

In[2]:=  

Out[2]=

In[3]:=  

Out[3]=

You can use Thread to get functions applied to both sides of an equation.

In[4]:=  

Out[4]=



Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.