Difference between revisions of "ApCoCoA-1:Num.AppKer"

From ApCoCoAWiki
(quotes)
Line 9: Line 9:
 
<description>
 
<description>
 
<em>Please note:</em> The function(s) explained on this page is/are using the <em>ApCoCoAServer</em>. You will have to start the ApCoCoAServer in order to use it/them.
 
<em>Please note:</em> The function(s) explained on this page is/are using the <em>ApCoCoAServer</em>. You will have to start the ApCoCoAServer in order to use it/them.
 
+
<par/>
 
Calculates the approximate Kernel of a <tt>Matrix</tt> with respect to the residual error <tt>Epsilon</tt>.
 
Calculates the approximate Kernel of a <tt>Matrix</tt> with respect to the residual error <tt>Epsilon</tt>.
  
Line 50: Line 50:
  
 
<key>AppKer</key>
 
<key>AppKer</key>
 +
<key>Num.AppKer</key>
  
 
<wiki-category>Package_numerical</wiki-category>
 
<wiki-category>Package_numerical</wiki-category>
 
</command>
 
</command>

Revision as of 16:12, 14 October 2009

AppKer

Calculates the approximate kernel of a matrix.

Syntax

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

Description

Please note: The function(s) explained on this page is/are using the ApCoCoAServer. You will have to start the ApCoCoAServer in order to use it/them.

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([
  [<quotes>-0.408</quotes>, <quotes>0.816</quotes>, <quotes>-0.408</quotes>]
])
-------------------------------
Mat([
  [<quotes>-0.000</quotes>],
  [<quotes>0.000</quotes>],
  [<quotes>0.000</quotes>]
])
-------------------------------



See also

Num.SVD