Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the prediction-correction method #37

Open
zhangyusi-hub opened this issue Jan 18, 2021 · 0 comments
Open

the prediction-correction method #37

zhangyusi-hub opened this issue Jan 18, 2021 · 0 comments

Comments

@zhangyusi-hub
Copy link

zhangyusi-hub commented Jan 18, 2021

When I do the following:
from phcpy.solver import total_degree_start_system
from phcpy.trackers import initialize_standard_tracker
from phcpy.trackers import initialize_standard_solution
from phcpy.trackers import next_standard_solution
from phcpy.solutions import strsol2dict
p = ['x^2 + 4x^2 - 4;', '2y^2 - x;']
(q, s) = total_degree_start_system(p)
s2 = s[3]
initialize_standard_tracker(p, q)
initialize_standard_solution(len(p), s2)
points = [next_standard_solution() for i in range(11)]
dicpts = [strsol2dict(sol) for sol in points]
tvals = [sol['t'] for sol in dicpts]
print(tvals)
that is [(0.1+0j), (0.2+0j), (0.3+0j), (0.4+0j), (0.5+0j), (0.6+0j), (0.7+0j), (0.7+0j), (0.77+0j), (0.84+0j), (0.9275+0j)].

Could you tell me how to change the t values with the function next_standard_solution()? For example, the current t values is 0.7+0j, and after running the function next_standard_solution(), the t value is 0.77+0j rather than 0.8+0j?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant