This paper aims to connect the bridge between analytical results and the use of the computer for numerical simulations in economics. We address the analytical properties of a simple dynamic aggregate demand and aggregate supply (AD-AS) model and solve it numerically. The model undergoes a bifurcation as its steady state smoothly interchanges stability depending on the relationship between the impact of real interest rate on demand for liquidity and how fast agents revise their expectations on inflation. Using code embedded into a unique function in Matlab, we plot the numerical solutions of the model and simulate different dynamic adjustments using different parameter values. The same function also accommodates the analysis of the impacts o...