Mathematica 9 is now available

Sequence

Usage

Sequence[ ,  , ... ] 表示一组自动接合到任意函数的参数.


Notes

• 例如: f[a, Sequence[b, c]]LongRightArrow .
• 除具有SequenceHoldHoldAllComplete属性的函数外,Sequence对象在所有函数中将自动被压平.
• 参见 Mathematica 全书: 2.2.11节.
Further Examples

Sequence is often used with Apply (short prefix form: @@) for splicing elements into an enclosing expression.

In[1]:=  

Out[1]=

Define a set of elements to be used as limits of integration.

In[2]:=  

Out[2]=

Since NIntegrate normally holds its elements unevaluated, it is necessary to use Evaluate to force the evaluation.

In[3]:=  

Out[3]=

This clears the definition.

In[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.