Skip to content

Commit

Permalink
Update random matrix Core test for new random(QQ) behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Sep 17, 2024
1 parent 7188e2c commit 23db5d8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions M2/Macaulay2/tests/normal/randommat.m2
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ assert( f == matrix {{47*x-16*y, 21*x-42*y}, {-17*x-23*y, 16*x-34*y}})
S = QQ[x,y]/(x^2,y^2)
g = random(S^{2:0},S^{2:-1})
toString g
assert( g == matrix {{10/3*x+7/4*y, 6/7*x+9/8*y}, {5/6*x+8*y, 3/4*x+8/7*y}})
-- old version: assert( g == matrix {{x+5/6*y, 3/7*x+4/5*y}, {8*x+2/5*y, 3/4*x+1/6*y}} )
assert( g == matrix {{3/5*x+5/6*y, 2/5*x+3/8*y}, {3/8*x+5/6*y, 4/7*x}})

-- check random isomorphisms are isomorphisms

Expand Down

0 comments on commit 23db5d8

Please sign in to comment.