public void CharacteristicPolynomial()
        {
            //arrange
            double  TOL  = 10E-6;
            CMatrix zero = new CMatrix(_m.RowCount, _m.ColumnCount);

            //action
            CPolynomial poly = CMatrix.CharacteristicPolynomial(_m);
            CMatrix     test = poly.Evaluate(_m);

            //assert
            CMatrix.FuzzyEquals(test, zero, TOL).Should().BeTrue();
        }
Beispiel #2
0
 public override object Evaluate()
 {
     return(new CMatrix(CMatrix.CharacteristicPolynomial(SubExpression.EvaluateAsCMatrix()).ToArray()));
 }