diff --git a/random-poly.jl b/random-poly.jl index 21d0d2e..c1bdba7 100644 --- a/random-poly.jl +++ b/random-poly.jl @@ -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 diff --git a/solve.jl b/solve.jl index 53d0bc5..1cb7324 100644 --- a/solve.jl +++ b/solve.jl @@ -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))