15.11.2014 Views

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

MATLAB Mathematics - SERC - Index of

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Initial Value Problems for ODEs and DAEs<br />

Time Steps for Integration<br />

Question<br />

The first step size that the<br />

integrator takes is too<br />

large, and it misses<br />

important behavior.<br />

Can I integrate with fixed<br />

step sizes?<br />

Answer<br />

You can specify the first step size with the InitialStep property.<br />

The integrator tries this value, then reduces it if necessary.<br />

No.<br />

Error Tolerance and Other Options<br />

Question<br />

How do I choose RelTol and<br />

AbsTol?<br />

Answer<br />

RelTol, the relative accuracy tolerance, controls the number <strong>of</strong><br />

correct digits in the answer. AbsTol, the absolute error tolerance,<br />

controls the difference between the answer and the solution. At<br />

each step, the error e in component i <strong>of</strong> the solution satisfies<br />

|e(i)|

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

Saved successfully!

Ooh no, something went wrong!