v4.1:: The reported residuals are rounded to zero if inferior to options_.dynatol/100.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2383 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
stepan 2009-01-29 22:25:01 +00:00
parent ae98231b23
commit 5c18a68ac3
1 changed files with 6 additions and 8 deletions

View File

@ -70,15 +70,13 @@ function resid(period)
end end
for i=1:length(z) for i=1:length(z)
if abs(z(i)) < 10^(-12) if abs(z(i)) < options_.dynatol/100
z(i) = 0; tmp = 0;
else
tmp = z(i);
end end
disp(['Residual for equation number ' int2str(i) ' is equal to ' num2str(z(i))]) disp(['Residual for equation number ' int2str(i) ' is equal to ' num2str(tmp)])
end end
for i = 1:2 for i = 1:2
disp(' ') disp(' ')
end end