mirror of
https://github.com/BachoSeven/homotopy-continuation.git
synced 2026-10-07 07:05:02 +00:00
update plot
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
- Projective coordinates
|
||||
- Parallelization
|
||||
- Endgames(?)
|
||||
- Extract functions in separate modules(?)
|
||||
|
||||
## Example system
|
||||
|
||||
@@ -20,6 +20,6 @@ xy - 1 &= 0 \\
|
||||
\end{align*}
|
||||
$$
|
||||
|
||||
Plot of our approximate solutions:
|
||||
Plot of the approximate solutions:
|
||||
|
||||

|
||||
|
||||
@@ -86,8 +86,8 @@ end
|
||||
|
||||
function plot_real(solutions, F)
|
||||
p=plot(xlim = (-3, 3), ylim = (-3, 3), aspect_ratio = :equal)
|
||||
contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[1](variables(F)=>[x,y]), levels=[0], color=:cyan)
|
||||
contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[2](variables(F)=>[x,y]), levels=[0], color=:green)
|
||||
contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[1](variables(F)=>[x,y]), levels=[0], cbar=false, color=:cyan)
|
||||
contour!(-3:0.1:3, -3:0.1:3, (x,y)->F[2](variables(F)=>[x,y]), levels=[0], cbar=false, color=:green)
|
||||
scatter!([real(sol[1]) for sol in solutions], [real(sol[2]) for sol in solutions], color = "red", label = "Solutions")
|
||||
|
||||
png("solutions")
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 18 KiB |
Reference in New Issue
Block a user