the problems about residual

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

the problems about residual

Postby jinyou_yin » Sat Apr 06, 2013 12:33 pm

My code for simulation goes well.and i input ''resid(1)'' after simulation ,results as follows comes out:
Residuals of the static equations:

Equation number 1 : 0
Equation number 2 : 0
Equation number 3 : 0
Equation number 4 : 0
Equation number 5 : 0
Equation number 6 : 0
Equation number 7 : 0
Equation number 8 : 0
Equation number 9 : 0
Equation number 10 : 0
Equation number 11 : 0
Equation number 12 : 0
Equation number 13 : 0
Equation number 14 : 0
Equation number 15 : 0
Equation number 16 : 0
Equation number 17 : 0
Equation number 18 : 0

ans =

1.0e-15 *

0
0
0
0
0
0.1110
0
0
-0.4441
-0.1665
0.0555
0
0
0
0
0
-0.2220
0
The version of my dynare is 4.3.2 The up side of this result is 0, but the bottom side says no .whis this mean?(I know few about MATLAB)
Thank you for your time.
Best
jinyou_yin
 
Posts: 11
Joined: Sun Mar 10, 2013 2:17 am

Re: the problems about residual

Postby jpfeifer » Tue Apr 09, 2013 8:11 am

This is due to numerical rounding. Everything that is 0 to the last 10 decimals or so is taken to be 0.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 4 guests