|
6 | 6 | <!-- |
7 | 7 | This HTML was auto-generated from MATLAB code. |
8 | 8 | To make changes, update the MATLAB code and republish this document. |
9 | | - --><title>AB2</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-06-06"><meta name="DC.source" content="AB2_doc.m"><style type="text/css"> |
| 9 | + --><title>AB2</title><meta name="generator" content="MATLAB 9.11"><link rel="schema.DC" href="http://purl.org/dc/elements/1.1/"><meta name="DC.date" content="2022-06-07"><meta name="DC.source" content="AB2_doc.m"><style type="text/css"> |
10 | 10 | html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0} |
11 | 11 |
|
12 | 12 | html { min-height:100%; margin-bottom:1px; } |
|
67 | 67 |
|
68 | 68 |
|
69 | 69 |
|
70 | | - </style></head><body><div class="content"><h1><tt>AB2</tt></h1><!--introduction--><p>Propagates the state vector forward one time step using the Adams-Bashforth 2nd-order method.</p><p><a href="index.html">Back to IVP Solver Toolbox Contents</a>.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Syntax</a></li><li><a href="#2">Description</a></li><li><a href="#3">Input/Output Parameters</a></li><li><a href="#4">See also</a></li></ul></div><h2 id="1">Syntax</h2><pre class="language-matlab">F = AB2(f,t,F,h) |
71 | | -</pre><h2 id="2">Description</h2><p><tt>F = AB2(f,t,y,h)</tt> updates the <img src="AB2_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix, <tt>F</tt>, for the next sample time, given the <img src="AB2_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix at time <tt>t</tt>, the function <tt>f(t,y)</tt> defining the ODE <img src="AB2_doc_eq13964145860186194730.png" alt="$\dot{\mathbf{y}}=\mathbf{f}(t,\mathbf{y})$" style="width:50px;height:11px;">, and the step size <tt>h</tt>.</p><h2 id="3">Input/Output Parameters</h2><p> |
| 70 | + </style></head><body><div class="content"><h1><tt>AB2</tt></h1><!--introduction--><p>Propagates the state vector forward one time step using the Adams-Bashforth 2nd-order method.</p><p><a href="index.html">Back to IVP Solver Toolbox Contents</a>.</p><!--/introduction--><h2>Contents</h2><div><ul><li><a href="#1">Syntax</a></li><li><a href="#2">Description</a></li><li><a href="#3">Input/Output Parameters</a></li><li><a href="#4">Note</a></li><li><a href="#5">See also</a></li></ul></div><h2 id="1">Syntax</h2><pre class="language-matlab">F = AB2(f,t,F,h) |
| 71 | +</pre><h2 id="2">Description</h2><p><tt>F = AB2(f,t,y,h)</tt> updates the <img src="AB2_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix, <tt>F</tt>, for the next sample time, given the <img src="AB2_doc_eq03148538246847756930.png" alt="$\mathbf{F}$" style="width:8px;height:8px;"> matrix at the current time <tt>t</tt>, the function <tt>f(t,y)</tt> defining the ODE <img src="AB2_doc_eq11546780198861005830.png" alt="$d\mathbf{y}/dt=\mathbf{f}(t,\mathbf{y})$" style="width:71px;height:11px;">, and the step size <tt>h</tt>.</p><h2 id="3">Input/Output Parameters</h2><p> |
72 | 72 | <table border=1> |
73 | 73 | <tr> |
74 | 74 | <td></td> |
|
97 | 97 | <tr> |
98 | 98 | <td style="text-align:center"><TT>F</TT></td> |
99 | 99 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /></td> |
100 | | - <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>)for the current sample time</td> |
| 100 | + <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>) for the current sample time</td> |
101 | 101 | <td style="text-align:center">p×3<BR>double</td> |
102 | 102 | </tr> |
103 | 103 | <tr> |
|
110 | 110 | <td rowspan="1" style="text-align:center"><b>Output</b></td> |
111 | 111 | <td style="text-align:center"><TT>F</TT></td> |
112 | 112 | <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /></td> |
113 | | - <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>)for the next sample time</td> |
| 113 | + <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>) for the next sample time</td> |
114 | 114 | <td style="text-align:center">p×3<BR>double</td> |
115 | 115 | </tr> |
116 | 116 | </table> |
117 | | -</p><h2 id="4">See also</h2><p><a href="AB2_doc.html"><tt>AB2</tt></a> | <a href="AB3_doc.html"><tt>AB3</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB® R2021b</a><br></p></div><!-- |
| 117 | +</p><h2 id="4">Note</h2><div><ul><li><img src="AB2_doc_eq06235627993914477729.png" alt="$p=$" style="width:17px;height:8px;"> dimension of the state vector (for the scalar case, <img src="AB2_doc_eq14406891124849479077.png" alt="$p=1$" style="width:25px;height:10px;">).</li></ul></div><h2 id="5">See also</h2><p><a href="AB3_doc.html"><tt>AB3</tt></a> | <a href="AB4_doc.html"><tt>AB4</tt></a> | <a href="AB5_doc.html"><tt>AB5</tt></a> | <a href="AB6_doc.html"><tt>AB6</tt></a> | <a href="AB7_doc.html"><tt>AB7</tt></a> | <a href="AB8_doc.html"><tt>AB8</tt></a></p><p class="footer"><br><a href="https://www.mathworks.com/products/matlab/">Published with MATLAB® R2021b</a><br></p></div><!-- |
118 | 118 | ##### SOURCE BEGIN ##### |
119 | 119 | %% |AB2| |
120 | 120 | % Propagates the state vector forward one time step using the |
|
125 | 125 | % F = AB2(f,t,F,h) |
126 | 126 | %% Description |
127 | 127 | % |F = AB2(f,t,y,h)| updates the $\mathbf{F}$ matrix, |F|, for the next |
128 | | -% sample time, given the $\mathbf{F}$ matrix at time |t|, the function |
129 | | -% |f(t,y)| defining the ODE $\dot{\mathbf{y}}=\mathbf{f}(t,\mathbf{y})$, |
130 | | -% and the step size |h|. |
| 128 | +% sample time, given the $\mathbf{F}$ matrix at the current time |t|, the |
| 129 | +% function |f(t,y)| defining the ODE |
| 130 | +% $d\mathbf{y}/dt=\mathbf{f}(t,\mathbf{y})$, and the step size |h|. |
131 | 131 | %% Input/Output Parameters |
132 | 132 | % <html> |
133 | 133 | % <table border=1> |
|
158 | 158 | % <tr> |
159 | 159 | % <td style="text-align:center"><TT>F</TT></td> |
160 | 160 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /></td> |
161 | | -% <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>)for the current sample time</td> |
| 161 | +% <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>) for the current sample time</td> |
162 | 162 | % <td style="text-align:center">p×3<BR>double</td> |
163 | 163 | % </tr> |
164 | 164 | % <tr> |
|
171 | 171 | % <td rowspan="1" style="text-align:center"><b>Output</b></td> |
172 | 172 | % <td style="text-align:center"><TT>F</TT></td> |
173 | 173 | % <td style="text-align:center"><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /></td> |
174 | | -% <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>)for the next sample time</td> |
| 174 | +% <td><img src="https://latex.codecogs.com/svg.latex?\inline&space;\mathbf{F}" title="" /> matrix (see Section 3.5.2 of the <a href="https://tamaskis.github.io/documentation/Solving_Initial_Value_Problems_for_ODEs.pdf">technical documentation</a>) for the next sample time</td> |
175 | 175 | % <td style="text-align:center">p×3<BR>double</td> |
176 | 176 | % </tr> |
177 | 177 | % </table> |
178 | 178 | % </html> |
| 179 | +%% Note |
| 180 | +% * $p=$ dimension of the state vector (for the scalar case, $p=1$). |
179 | 181 | %% See also |
180 | | -% <AB2_doc.html |AB2|> | |
181 | 182 | % <AB3_doc.html |AB3|> | |
182 | 183 | % <AB4_doc.html |AB4|> | |
183 | 184 | % <AB5_doc.html |AB5|> | |
|
0 commit comments