Skip to content

Determinant for a matrix with polynomial entries #3629

Answered by joschmitt
adhalanay asked this question in Q&A
Discussion options

You must be logged in to vote

We have our own "matrix type" in OSCAR (if you wonder why, see the question "Why do you have your own matrix types, and why do they not support the exact same commands as Julia matrices?" in the FAQ). So, you have to convert your Julia Matrix into an OSCAR one:

julia> R, (x, y) = QQ["x", "y"];

julia> M = [x y; y x] # <- This is a Julia Matrix, the OSCAR functionality usually doesn't work
2×2 Matrix{QQMPolyRingElem}:
 x  y
 y  x

julia> N = matrix(R, M) # This is now an OSCAR matrix
[x   y]
[y   x]

julia> det(N) # Now `det` works
x^2 - y^2

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adhalanay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants