From ab0623356363dc8f91b655b4d20dffb21ee074a0 Mon Sep 17 00:00:00 2001 From: Alan Edelman Date: Thu, 26 Sep 2024 19:32:28 -0400 Subject: [PATCH] Update circular.jl --- notebooks/circular.jl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/notebooks/circular.jl b/notebooks/circular.jl index 68982f2..6ed4a2a 100644 --- a/notebooks/circular.jl +++ b/notebooks/circular.jl @@ -45,12 +45,15 @@ end @bind β Slider([.5,1,4,10,100,1000,1e10]; default=1, show_value=true) # ╔═╡ e4418523-234c-4faa-a29b-43484013b322 -@bind n Slider(2:8; default=3, show_value=true) +@bind n Slider(2:17; default=3, show_value=true) # ╔═╡ 63cd9672-d3d2-4b2a-8076-f98b60dc11e6 begin - e = eigvals(circular(3,β)) - plot([e./e[1];1],label=false,aspect_ratio = :equal ) + e = eigvals(circular(n,β)) + ϕ = sort(angle.(e)) + ϕ .-= ϕ[1] + append!(ϕ,0) + plot(cos.(ϕ),sin.(ϕ),label=false,aspect_ratio = :equal ) θ = (0:.01:1).*2π plot!(cos.(θ),sin.(θ),label=false) end