ApCoCoA-1:Num.AppKer

From ApCoCoAWiki
Revision as of 13:45, 7 October 2009 by Jan (talk | contribs) (Added AppKer command)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

AppKer

Map.

Syntax

Num.AppKer(Matrix:MAT, Epsilon:RAT):MAT

Description

Calculates the approximate Kernel of a Matrix with respect to the residual error Epsilon.

  • @param Matrix A rational matrix.

  • @param Epsilon The target residual error.

  • @return The approximate kernel.

Example

M := Mat([[1,2,3],[4,5,6],[7,8,9]]);
AppKer := Num.AppKer(M,0.01);
Dec(AppKer,3);
Dec(M * Transposed(AppKer),3);
-- CoCoAServer: computing Cpu Time = 0.016
-------------------------------
Mat([
  ["-0.408", "0.816", "-0.408"]
])
-------------------------------
Mat([
  ["-0.000"],
  ["0.000"],
  ["0.000"]
])
-------------------------------



See also

Num.SVD