Mathematica 9 is now available

ClearAttributes

Usage

ClearAttributes[s, attr] 从符号 s的属性列表中移走attr.


Notes

ClearAttributes 修改 Attributes[s].
ClearAttributes[s,   ,  , ...  ]一次移走几个属性.
ClearAttributes[  ,  , ...  , attrs]一次从几个符号移走属性.
ClearAttributes 具有属性 HoldFirst.
ClearAttributes 并不对属性 Locked发生影响.
• 参见Mathematica全书: 2.3.7 and 节 2.5.3.
• 同时参见: SetAttributes, Unprotect.
Further Examples

This defines a function for integer arguments.

In[1]:=  

It doesn't do anything on lists.

In[2]:=  

Out[2]=

This makes it listable.

In[3]:=  

Now it works on lists.

In[4]:=  

Out[4]=

This makes fun1 no longer listable; the definition still works.

In[5]:=  

In[6]:=  

Out[6]=

In[7]:=  



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.