Mathematica 9 is now available

ComplexityFunction

Usage

ComplexityFunctionSimplifyFullSimplify的选项,给出把一个表达式的不同形式的复杂性归类的函数。


Notes

• 在缺省设置ComplexityFunction->Automatic, 形式主要根据它们的LeafCount归类,
Simplify[expr, ComplexityFunction->f]f 应用到由Simplify产生的中间表达式,把产生最小数值的表达式当成最简单的。
• 参见Mathematica全书: 3.3.9.
Further Examples

You can use the option ComplexityFunction to specify different simplicity criteria. Here the goal is to avoid Sin if possible.

In[1]:=  

Out[1]=

Here the goal is to minimize the number of leaves by absorbing the factors into the logarithms.

In[2]:=  

Out[2]=

Under the default ComplexityFunction, the last three entries in the list are left unchanged. They are considered simpler than the alternative forms seen in the previous example because the relatively large integers no longer appear.

In[3]:=  

Out[3]=

This contrasts the default setting with a defined setting.

In[4]:=  

Out[4]=

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.