Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Polynomials > coffg

coffg

Co-factors of a matrix of polynomials or rationals

Syntax

[tC, d] = coffg(M)

Arguments

M

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

tC

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

d

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

Description

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.

Examples

// 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 — inversion of (rational) matrix
  • glever — inverse of matrix pencil
  • determ — determinant of polynomial matrix
  • detr — polynomial determinant
Report an issue
<< coeff Polynomials colcompr >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:26:48 CET 2018