Skip to content

Commit 4607f77

Browse files
documented SI_det
1 parent 1f1cb7c commit 4607f77

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

doc/matrix.autodoc

+21-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,27 @@ z,z^2
215215
<Attr Name="Determinant" Arg="mat" Label="for a Singular matrix"/>
216216
<Attr Name="DeterminantMat" Arg="mat" Label="for a Singular matrix"/>
217217
<Description>
218-
TODO
218+
219+
Return the determinant of the square matrix <A>mat</A>.
220+
221+
<Example><![CDATA[
222+
gap> r := SI_ring( );
223+
<singular ring, 3 indeterminates>
224+
gap> m := SI_matrix( r, 2, 3, "x,y,z,x^2,y^2,z^2" );
225+
<singular matrix, 2x3>
226+
gap> Display( m );
227+
x, y, z,
228+
x^2,y^2,z^2
229+
gap> n := m * SI_transpose( m );
230+
<singular matrix, 2x2>
231+
gap> SI_det( n );
232+
x^4*y^2-2*x^3*y^3+x^2*y^4+x^4*z^2+y^4*z^2-2*x^3*z^3-2*y^3*z^3+x^2*z^4+y^2*z^4
233+
gap> N := SI_module( n );
234+
<singular module, 2 vectors in free module of rank 2>
235+
gap> SI_det( N );
236+
x^4*y^2-2*x^3*y^3+x^2*y^4+x^4*z^2+y^4*z^2-2*x^3*z^3-2*y^3*z^3+x^2*z^4+y^2*z^4
237+
]]></Example>
238+
219239
</Description>
220240
</ManSection>
221241

0 commit comments

Comments
 (0)