- #1
james1234
- 19
- 0
Hi
Could someone please explain how to best handle rational polynomials in Maple?
I have matrix of rational polynomials and for some reason Maple keeps grumbling
i.e.
"error, (in, linearalgebra:- HermiteForm) expecting a matrix of rational polynomials"
The matrix I am working with is of the form (lets assume for simplicity its a 2x2)
with(LinearAlgebra); with(MatrixPolynomialAlgebra)
TF :=Matrix(2, 2, [a/s^2, -b/(s^2+1), c/(s^2+d), c/(s^2+d)]).
% just for good measure
M := convert(evalf(TF, 5), rational)
H := HermiteForm[column](M, s)
where a, b, c, d are rational numbers
Now each of the elements of the matrix are rational polynomials so I fail to see the issue. I need to be able to work with matrices in this form in maple/matlab/Magma as its no longer practical to continue to solve these probs by hand, especially for the larger matrices.
Would really appreciate any pointers
Could someone please explain how to best handle rational polynomials in Maple?
I have matrix of rational polynomials and for some reason Maple keeps grumbling
i.e.
"error, (in, linearalgebra:- HermiteForm) expecting a matrix of rational polynomials"
The matrix I am working with is of the form (lets assume for simplicity its a 2x2)
with(LinearAlgebra); with(MatrixPolynomialAlgebra)
TF :=Matrix(2, 2, [a/s^2, -b/(s^2+1), c/(s^2+d), c/(s^2+d)]).
% just for good measure
M := convert(evalf(TF, 5), rational)
H := HermiteForm[column](M, s)
where a, b, c, d are rational numbers
Now each of the elements of the matrix are rational polynomials so I fail to see the issue. I need to be able to work with matrices in this form in maple/matlab/Magma as its no longer practical to continue to solve these probs by hand, especially for the larger matrices.
Would really appreciate any pointers