Symbolic Algebra for Generating Compilable Code for DSGE Applications