23.01.2015 Views

Download - Wolfram Research

Download - Wolfram Research

Download - Wolfram Research

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3.12 Nonlinear Simplification Techniques 415<br />

The level specification of CancelTerms does not correspond to the level of the internal<br />

Mathematica representation of dae. Use ShowLevel (Section 3.12.6) or Statistics<br />

(Section 3.6.17) to see which levels can be influenced by CancelTerms.<br />

Ranking<br />

Cancellation of terms is performed in a pre-calculated order which sorts the terms by increasing<br />

influence. A method which estimates the influence of a cancellation on the output behavior is<br />

called ranking. CancelTerms lets you choose which ranking method to use for each analysis mode<br />

separately by means of the Ranking option. Possible values are:<br />

{mode−>Automatic|Simulation, † † † }<br />

set mode dependent ranking functions<br />

Values for the Ranking option.<br />

Automatic<br />

Simulation<br />

equivalent to {_−>Automatic}<br />

equivalent to {_−>Simulation}<br />

The ranking method can either be Automatic, which means to use the internal implemented ranking<br />

function, or Simulation, which means to use the corresponding simulation function to calculate<br />

the influence. The former is much more efficient while the latter is more accurate. If the option<br />

value is the symbol Automatic or Simulation the corresponding ranking function is set for all<br />

analysis modes simultaneously. If you want to set the ranking function for each mode separately,<br />

you have to give a list of rules. The current analysis mode is then matched against the left hand<br />

side of the rules and the corresponding right hand sides are chosen as ranking functions. Thus, mode<br />

can either be one of the symbols DT or AC, or a pattern specification like _. The default setting is<br />

Ranking −> Automatic.<br />

RecordCancellations<br />

The value of the RecordCancellations option determines whether term cancellations are recorded<br />

during computation. If set to True, a cancellation history is written to the options section of the<br />

DAEObject given as argument to CancelTerms. Note that it is not written to the returned DAEObject.<br />

The command ShowCancellations (Section 3.12.7) can then be used to visualize the history list. If<br />

set to False, no history list is recorded. The default setting is RecordCancellations −> True.<br />

If you cancel terms in different levels, the history list of the first level will be recorded only.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!