Minor simplification

time-shift
Sébastien Villemot 2019-04-26 14:44:22 +02:00
parent 36ab8d0093
commit c5c1307725
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ steady;
stoch_simul(order=2,irf=0);
sigma2=M_.Sigma_e;
i = linspace(1,800,800);
i = 1:800;
a = theta*xbar*i+(theta^2*sigma2)/(2*(1-rho)^2)*(i-2*rho*(1-rho.^i)/(1-rho)+rho^2*(1-rho.^(2*i))/(1-rho^2));
a1 = theta^2*sigma2/(2*(1-rho)^2)*(i-2*rho*(1-rho.^i)/(1-rho)+rho^2*(1-rho.^(2*i))/(1-rho^2));
b = theta*rho*(1-rho.^i)/(1-rho);
@ -46,4 +46,4 @@ x2 = [
];
if any(abs(x1-x2) > 1e-14);
error('burnside_1 doesn''t reproduce the analytical solution');
end;
end;