ComplexityFunction
Usage
Notes
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]=
|
This does the same thing.
In[2]:=
|
Out[2]=
|
Here the goal is to minimize the number of leaves by absorbing factors into the logarithms.
In[3]:=
|
Out[3]=
|
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[4]:=
|
Out[4]=
|
|