print degrees

main
Francesco Minnocci 10 months ago
parent 7394ce41ba
commit d54be82f1a
No known key found for this signature in database
GPG Key ID: 76DA3AF9BAED1A32

@ -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

@ -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))

Loading…
Cancel
Save