Use a step_array

This commit is contained in:
2023-08-24 19:01:10 +02:00
parent b35e59efd7
commit 6edc93d215
4 changed files with 3 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

+3 -2
View File
@@ -20,7 +20,7 @@ function solve(F, (G, roots) = start_system(F), maxsteps=10000)
# F=homogenize(F)
H=homotopy(F,G)
solutions = []
steps = 0
step_array = []
@time Threads.@threads for r in roots
t = 1.0
@@ -37,9 +37,10 @@ function solve(F, (G, roots) = start_system(F), maxsteps=10000)
steps += 1
end
push!(solutions, x0)
push!(step_array, steps)
end
return (solutions, steps)
return (solutions, step_array)
end
# Input polynomial system