dare - (Not recommended) Solve discrete-time algebraic Riccati equations - MATLAB

This MATLAB function computes the unique stabilizing solution X of the discrete-time algebraic Riccati equation: