Skip to content

Commit cd4eee5

Browse files
committed
more organization
1 parent 46295b1 commit cd4eee5

File tree

11 files changed

+26
-57
lines changed

11 files changed

+26
-57
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Spiders"
22
uuid = "52854307-bbd1-4ac7-933f-adc0936abe8a"
33
authors = ["Jeffrey Wack"]
4-
version = "1.0.0-DEV"
4+
version = "0.1.0-alpha"
55

66
[compat]
77
julia = "1.6.7"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/parameters/RenderFractal.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ function escapeorconverge(Radius::Real)
104104
end
105105

106106

107-
108107
function julia_patch(center::Complex, right_center::Complex)
109108
#Overall strategy:
110109
#we will first compute the patch at the correct scale and orientation, centered at the origin

src/sequences/AngleDoubling.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,19 @@ function orbit(a::Vector{Rational{Int}})
7171

7272
end
7373

74+
function orbit(seq::Sequence)
75+
items = Sequence[]
76+
77+
while isempty(findall(x->x==seq,items))
78+
push!(items,seq)
79+
seq = shift(seq)
80+
end
81+
82+
preperiod = findall(x->x==seq,items)[1] - 1
83+
84+
return Sequence{Sequence}(items,preperiod)
85+
end
86+
7487
function thetaitinerary(theta::Rational,orb::Sequence)
7588
a = theta/2
7689
b = (theta+1)/2

src/sequences/Sequences.jl

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,6 @@ function shiftby(seq::Sequence,n::Int)
103103
end
104104
end
105105

106-
function orbit(seq::Sequence)
107-
items = Sequence[]
108-
109-
while isempty(findall(x->x==seq,items))
110-
push!(items,seq)
111-
seq = shift(seq)
112-
end
113-
114-
preperiod = findall(x->x==seq,items)[1] - 1
115-
116-
return Sequence{Sequence}(items,preperiod)
117-
end
118-
119106
function divisors(n)
120107
d = Int64[1]
121108
for (p, e) in factor(n)
@@ -131,15 +118,6 @@ function divisors(n)
131118
return sort(d)
132119
end
133120

134-
function agrees(K::Sequence,str::String)
135-
for (ii,item) in enumerate(str)
136-
if item !== K[ii]
137-
return false
138-
end
139-
end
140-
return true
141-
end
142-
143121
function prepend(K::Sequence,thing)
144122
return Sequence{Char}(pushfirst!(copy(K.items),thing),K.preperiod+1)
145123
end

src/sequences/newseq.jl

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/trees/HubbardTrees.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ function Base.getindex(H::HubbardTree, str::String)
2929
return Dict(list)
3030
end
3131

32+
function agrees(K::Sequence,str::String)
33+
for (ii,item) in enumerate(str)
34+
if item !== K[ii]
35+
return false
36+
end
37+
end
38+
return true
39+
end
40+
3241
function HubbardTree(K::Sequence{Char})
3342
starK = prepend(K,'*')
3443
#We begin with the critical orbit

0 commit comments

Comments
 (0)