Skip to content

Commit

Permalink
end 2x2 detailed tutorial done
Browse files Browse the repository at this point in the history
  • Loading branch information
rfabbri committed Jun 16, 2024
1 parent 4cf67d9 commit 8a3dabd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tutorial/end-2x2.m2
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ load "equations-2x2.m2"
-- Read start system
(p0,sols0) = readStartSys "startSys";

print "Start solutions should evaluate to 0:"
sols0 = flatten \ entries \ sols0 -- convert to list of list
print(apply(sols0, x -> evaluate(GS, point p0, x)))

-- Pro -------------------------------------------------------------------------
-- verify options are set as desired
-- netList((keys options trackHomotopy)/(opt ->(opt, getDefault opt)))
Expand Down Expand Up @@ -121,6 +117,11 @@ sols1 = trackHomotopy(H01, sols0)
print "Target found solutions should evaluate to 0:"
print(apply(sols1, x -> evaluate(GS, point p1, x)))

print "Start solutions should evaluate to 0:"
sols0 = point \ sols0 -- convert to list of list
print(apply(sols0, x -> evaluate(GS, point p0, x)))


-- Pro -------------------------------------------------------------------------
-- J0 = evaluate(J,sols0||p0); -- Evaluates Jacobian if desired

Expand Down

0 comments on commit 8a3dabd

Please sign in to comment.