From c5c1307725e90995f55abb9139485d97ea2853f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Fri, 26 Apr 2019 14:44:22 +0200 Subject: [PATCH] Minor simplification --- tests/second_order/burnside_1.mod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/second_order/burnside_1.mod b/tests/second_order/burnside_1.mod index 670471904..5c9906f7c 100644 --- a/tests/second_order/burnside_1.mod +++ b/tests/second_order/burnside_1.mod @@ -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; \ No newline at end of file +end;