Question 1
Consider the system of IVPs defined by
y(1)(t) = -2.6 x(t) − 0.3 y(t)
together with
Find the first five iterations using h = 0.1.
You can check your answer with
>> M = [-0.6 1.8; -2.6 -0.3]; >> x = zeros( 2, 1000 ); >> x(:, 1) = [1 1]'; >> for i=2:1000 x(:, i) = x(:, i - 1) + 0.1 * M*x(:, i - 1); end; >> plot( x(1, :), x(2, :) )
however, the first two iterations are u1 = (1.12, 0.71)T and u2 = (1.1806, 0.3975)T.
Copyright ©2006 by Douglas Wilhelm Harder. All rights reserved.