ApCoCoA-1:Num.SingularValues: Difference between revisions

From ApCoCoAWiki
Added SingularValues command
 
m replaced <quotes> tag by real quotes
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Version|1}}
<command>
<command>
     <title>Num.SingularValues</title>
     <title>Num.SingularValues</title>
Line 21: Line 22:
-- CoCoAServer: computing Cpu Time = 0
-- CoCoAServer: computing Cpu Time = 0
-------------------------------
-------------------------------
[<quotes>33.091</quotes>, <quotes>17.047</quotes>, <quotes>3.365</quotes>]
["33.091", "17.047", "3.365"]
-------------------------------
-------------------------------
</example>
</example>
     </description>
     </description>
     <seealso>
     <seealso>
       <see>Introduction to CoCoAServer</see>
       <see>ApCoCoA-1:Introduction to CoCoAServer|Introduction to CoCoAServer</see>
       <see>Num.QR</see>
       <see>ApCoCoA-1:Num.QR|Num.QR</see>
       <see>Num.SVD</see>
       <see>ApCoCoA-1:Num.SVD|Num.SVD</see>
       <see>Num.EigenValues</see>
       <see>ApCoCoA-1:Num.EigenValues|Num.EigenValues</see>
       <see>Num.EigenValuesAndVectors</see>
       <see>ApCoCoA-1:Num.EigenValuesAndVectors|Num.EigenValuesAndVectors</see>
       <see>Num.EigenValuesAndAllVectors</see>
       <see>ApCoCoA-1:Num.EigenValuesAndAllVectors|Num.EigenValuesAndAllVectors</see>
     </seealso>
     </seealso>
     <types>
     <types>
Line 40: Line 41:
     <key>singularvalues</key>
     <key>singularvalues</key>
     <key>num.singularvalues</key>
     <key>num.singularvalues</key>
     <wiki-category>Package_numerical</wiki-category>
     <wiki-category>ApCoCoA-1:Package_numerical</wiki-category>
</command>
</command>

Latest revision as of 13:48, 29 October 2020

This article is about a function from ApCoCoA-1.

Num.SingularValues

Computes the singular values of a matrix.

Syntax

Num.SVD(A:MAT):[S:LIST]

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.

This command computes the singular values of the given matrix A.

  • @param A The matrix we want to analyze.

  • @return A list containing the singular values of A.

Example

D:=[[1,2,7,18],[2,4,9,12],[23,8,9,10]];
Dec(Num.SingularValues(D),3);

-- CoCoAServer: computing Cpu Time = 0
-------------------------------
["33.091", "17.047", "3.365"]
-------------------------------

See also

Introduction to CoCoAServer

Num.QR

Num.SVD

Num.EigenValues

Num.EigenValuesAndVectors

Num.EigenValuesAndAllVectors