Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - 日本語 -
Справка Scilab >> Polynomials > coffg


Co-factors of a matrix of polynomials or rationals


[tC, d] = coffg(M)



square matrix of numbers or polynomials or rationals, with real or complex coefficients.


square matrix of the type of M: Transposed co-matrix of M, such that tC/d is equal to inv(M).


scalar: determinant det(M), with the M's data type and encoding.


coffg(M) computes co-factors of M, and returns the transposed co-matrix tC.

When M has a single component, tC is 1 and d==M

For large matrices, calculations may be slow.


// With polynomials
a = [ %s, %s^2+1; %s  %s^2-1];
[a1, d] = coffg(a)
(a1/d) - inv(a)

// With rationals
a = [%s 0 ; 0 1/%s]
[a1, d] = coffg(a)
(a1/d) - inv(a)

See also

  • inv — matrix inverse
  • invr — inverts a matrix of polynomials or of rationals
  • glever — inverse of matrix pencil
  • determ — determinant of a matrix of polynomials
  • detr — determinant of a matrix of rationals
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Jan 03 14:39:55 CET 2022