Identity equations

I retracted my post when I learned that I’m pretty dense, and I can mix matlab code in with the mod file.