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-bf33cf982152time-shift
parent
ae98231b23
commit
5c18a68ac3
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue