From 23db5d8787adf422e67e19ff36b14573b3831bd1 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Tue, 17 Sep 2024 19:46:45 -0400 Subject: [PATCH] Update random matrix Core test for new random(QQ) behavior --- M2/Macaulay2/tests/normal/randommat.m2 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/M2/Macaulay2/tests/normal/randommat.m2 b/M2/Macaulay2/tests/normal/randommat.m2 index 40ac9db11c..7d3b8540b1 100644 --- a/M2/Macaulay2/tests/normal/randommat.m2 +++ b/M2/Macaulay2/tests/normal/randommat.m2 @@ -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