Difference between revisions of "ApCoCoA-1:LinAlg.CharPoly"
From ApCoCoAWiki
(Initial version.) |
m (insert version info) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Version|1}} | ||
<command> | <command> | ||
<title>LinAlg.CharPoly</title> | <title>LinAlg.CharPoly</title> | ||
Line 33: | Line 34: | ||
</description> | </description> | ||
− | <see>Introduction to CoCoAServer</see> | + | <see>ApCoCoA-1:Introduction to CoCoAServer|Introduction to CoCoAServer</see> |
− | <see>LinBox.CharPoly</see> | + | <see>ApCoCoA-1:LinBox.CharPoly|LinBox.CharPoly</see> |
− | <see>CharPoly</see> | + | <see>ApCoCoA-1:CharPoly|CharPoly</see> |
<types> | <types> | ||
<type>matrix</type> | <type>matrix</type> | ||
Line 43: | Line 44: | ||
<key>linalg.CharPoly</key> | <key>linalg.CharPoly</key> | ||
<key>characteristic polynomial</key> | <key>characteristic polynomial</key> | ||
− | <wiki-category>Package_linalg</wiki-category> | + | <wiki-category>ApCoCoA-1:Package_linalg</wiki-category> |
</command> | </command> |
Latest revision as of 10:10, 7 October 2020
This article is about a function from ApCoCoA-1. |
LinAlg.CharPoly
Computes the characteristic polynomial of a matrix.
Syntax
LinAlg.CharPoly(M:MAT, X:POLY):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 function returns the characteristic polynomial of M in the indeterminate X computed by the ApCoCoAServer using functions of the LinBox library.
@param M A matrix with arbitrary entries over the current ring, but whose components do not contain the indeterminate X.
@param X An indeterminate.
@return The characteristic polynomial of M in the indeterminate X.
Example
Use R ::= ZZ/(19)[x]; LinAlg.CharPoly(BringIn(Mat([[1,2,3],[4,5,6],[7,8,9]])), x); ------------------------------- x^3 + 4x^2 + x -------------------------------
Example
Use R ::= ZZ[x]; LinAlg.CharPoly(Mat([[1,2,3],[4,5,6],[7,8,9]]), x); ------------------------------- x^3 - 15x^2 - 18x -------------------------------