Solve a continuous algebraic Riccati equation
function care extends Modelica.Icons.Function; import Modelica_LinearSystems2.Math.Matrices; output Real X1[2, 2] = Matrices.care(A, B, R, Q, false); output Real X2[2, 2] = Matrices.care(A, B, R, Q, true); output Real X3[2, 2] = [9*(1 + sqrt(2)), 6*(1 + sqrt(2)); 6*(1 + sqrt(2)), 4*(1 + sqrt(2))]; end care;