ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 31 Jan 2018 22:15:26 -0600Hurwitz determinantshttp://ask.sagemath.org/question/9433/hurwitz-determinants/Dear all,
let p(z)=z^n+a_1*z^{n-1}+...+a_n be a polynomial where n is a positive integer and a_1,a_2,..., a_n are real numbers. Then the so-called **Hurwitz determinants** of order k=1,2,...,n of p are defined as det(a_{2i-j}) , 1 \leq i,j \leq k where a_0=1 and a_l=0 for l<0 or l>k.
Is there a routine implemented in Sage to compute these determinants (numerically)?
Thanks a lot in advance.HacksteinTue, 16 Oct 2012 02:36:20 -0500http://ask.sagemath.org/question/9433/random matrix with determinant +- 1http://ask.sagemath.org/question/40912/random-matrix-with-determinant-1/ I want to generate a random 4x4 matrix with integer entries and determinant either 1 or -1. I know that you can use
`random_matrix(ZZ,4,4, algorithm = 'unimodular')`
to generate matrices with determinant 1 (so in the special linear group). However, I'm actually more interested in the matrices with determinant -1.
Is there a 'Sage' way to do this? Or are there other functions/routines out there I should look at?
Thanks!
Daniel LWed, 31 Jan 2018 22:15:26 -0600http://ask.sagemath.org/question/40912/