From d54be82f1a605380ae4ae7b6b5ab9e7c35530492 Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Mon, 25 Dec 2023 23:51:53 +0100 Subject: [PATCH] print degrees --- random-poly.jl | 1 + solve.jl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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))