print degrees

This commit is contained in:
2023-12-25 23:51:53 +01:00
parent 7394ce41ba
commit d54be82f1a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -19,6 +19,7 @@ module RandomPoly
# of degree d_i randomly chosen between 1 and max_degree
function random_system(m, max_degree)
d = rand(1:max_degree, m)
println("Degrees: ", d)
random_polys = [random_poly(d[i], m) for i in 1:m]
return random_polys
+1 -1
View File
@@ -66,7 +66,7 @@ end
# F = [x*y - 1, x^2 + y^2 - 4]
# T = [x*y - 1, x^2 + y^2 - 2]
R = random_system(3, 5)
R = random_system(5, 3)
println("System: ", R)
(G, roots)=start_system(R)
println("Number of roots: ", length(roots))