Skip to content

Commit 1f8933a

Browse files
committed
tweaks
1 parent a1e8f3c commit 1f8933a

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

spiders/SpiderFuncs.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using IterTools
1+
using IterTools
22

33
function region(point::Complex,boundary::Vector{<:Complex})
44
x2 = real(point)
@@ -140,4 +140,7 @@ function test_intersection(z1::Complex,z2::Complex,w1::Complex,w2::Complex)
140140

141141
end
142142

143+
#function angle(z1::Complex,z2::Complex,z3::Complex)
144+
#calculate the angle at z2 formed by the segments (z1,z2) and (z2,z3)
145+
#end
143146

spiders/Spiders.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,13 @@ function spideriterates(S0::Spider,n_iter::Int)
177177
push!(list,deepcopy(mapspider!(S0)))
178178
end
179179
return list
180+
end
181+
182+
#TODO modify below to have tolerance-based convergence behavior
183+
function parameter(S0::Spider,n_iter::Int)
184+
S = deepcopy(S0)
185+
for ii in 1:n_iter
186+
mapspider!(S)
187+
end
188+
return S.legs[2][end]/2
180189
end

trees/EmbedTrees.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function embednodes(OHT::OrientedHubbardTree)
99
criticalorbit = orbit(OHT.zero) #This is a sequence orbit
1010

1111
theta = angleof(first(criticalanglesof(OZ,OHT)))
12-
c = spideriterate(theta,250)
12+
c = parameter(standardspider(theta),250)
13+
print(c)
1314

1415
#critical orbit
1516
rays = Dict()

trees/ShowTree.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ include("EmbedTrees.jl")
55
include("../spiders/Spiders.jl")
66
include("../parameters/DynamicRays.jl")
77

8-
98
### Convenience functions
109
function plottree!(scene,angle::Rational)
1110
return plottree!(scene,OrientedHubbardTree(angle))

0 commit comments

Comments
 (0)