Visualization
julia> @variables x y;julia> CC = AcbField(128);julia> F = [x^2 + y - 2, y^2 + x - 2];julia> G = [x^2 - 1, y^2 - 1];julia> H = straight_line_homotopy(F, G, [x, y]; CCRing=CC, gamma=CC(1, 1));Compilation Done.julia> res = track_path(H, [CC(1), CC(1)]; visualize=true);julia> length(path_boxes(res))22julia> filename = tempname() * ".tex";julia> export_path_tikz(res, filename; axes=(:t, 1)) == filenametrue
CertifiedHomotopyTracking.PathBox — Type
PathBoxOne certified path box used for path visualization.
Fields:
t: certified time interval.x: certified coordinate boxes.source: producer such as:track_pathor:posteriori.metadata: additional stage/certification metadata.
CertifiedHomotopyTracking.PathVisualization — Type
PathVisualizationCollection of PathBoxs together with axis choices and metadata.
Objects of this type can be exported with export_path_tikz or export_path_obj.
CertifiedHomotopyTracking.path_boxes — Function
path_boxes(input)Extract path visualization boxes from a PathVisualization, TrackResult, PosterioriPathResult, or a compatible object.
For track_path, boxes are stored when store_boxes=:full or visualize !== false.
CertifiedHomotopyTracking.export_path_tikz — Function
export_path_tikz(input, filename; kwargs...) -> filenameExport path boxes to a TikZ file.
input may be a PathVisualization, TrackResult, PosterioriPathResult, or a vector of PathBoxs.
Options
axes=nothing: two or three axes. Axis entries may be:t, an integer coordinate index, or(i, :real),(i, :imag),(i, :abs).show_trace=false: draw numerical trace points when available.
Example
@variables x y;
CC = AcbField(128);
F = [x^2 + y - 2, y^2 + x - 2];
G = [x^2 - 1, y^2 - 1];
H = straight_line_homotopy(F, G, [x, y]; CCRing=CC, gamma=CC(1, 1));
res = track_path(H, [CC(1), CC(1)]; visualize=true);
filename = tempname() * ".tex";
export_path_tikz(res, filename; axes=(:t, 1)) == filenameCertifiedHomotopyTracking.export_path_obj — Function
export_path_obj(input, filename; axes=(:t, 1, (1, :imag))) -> filenameExport path boxes to a Wavefront OBJ file. OBJ export expects exactly three axes.