Skip to content

Commit 0311284

Browse files
committed
fixed Julia 1.12 world age #15
1 parent 84609e9 commit 0311284

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Fatou"
22
uuid = "5f923234-c850-556d-bb4f-28324fa1959a"
33
authors = ["Michael Reed"]
4-
version = "1.2.3"
4+
version = "1.2.4"
55

66
[deps]
77
ColorSchemes = "35d6a980-a343-548e-a6ea-1d62b119f2f4"

src/Fatou.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module Fatou
22
using SyntaxTree, Reduce, LaTeXStrings, Base.Threads
3+
import SyntaxTree: genlatest
34

45
# This file is part of Fatou.jl.
56
# It is licensed under the MIT license
@@ -109,9 +110,9 @@ struct Define{FT<:Function,QT<:Function,CT<:Function,M,N,P,D,B} <: ComplexBundle
109110
plane::Bool=false,
110111
disk::Bool=false,
111112
B=im)
112-
!newt ? (f = genfun(E,[:z,:c]); q = genfun(Q,[:z,:c])) :
113-
(f = genfun(newton_raphson(E,m),[:z,:c]); q = genfun(Expr(:call,:abs,E),[:z,:c]))
114-
c = genfun(C,[:z,:n,:p])
113+
!newt ? (f = genlatest(E,[:z,:c]); q = genlatest(Q,[:z,:c])) :
114+
(f = genlatest(newton_raphson(E,m),[:z,:c]); q = genlatest(Expr(:call,:abs,E),[:z,:c]))
115+
c = genlatest(C,[:z,:n,:p])
115116
e = typeof(E) == String ? parse(E) : E
116117
return new{typeof(f),typeof(q),typeof(c),mandel,newt,plane,disk,B}(e,f,q,c,Rectangle(∂,n),UInt16(N),float(ϵ),iter,float(p),newt,m,mandel,seed,x0,orbit,depth,cmap,plane,disk)
117118
end

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Fatou.Reduce.load_package(:rlfi)
1212
@test newton(:(z^3-1)) |> fatou |> typeof <: Fatou.FilledSet
1313
@test mandelbrot(:(z^2+c)) |> fatou |> typeof <: Fatou.FilledSet
1414
@test juliafill(:(z^2-0.06+0.67im)) |> fatou |> typeof <: Fatou.FilledSet
15-
#@test (η = Fatou.newton_raphson(:(z^3-1),1); ξ = genfun(η,[:z,:c]); ζ = 2.1; [ξ(ζ,0), [Fatou.recomp(η,ζ,k) for k ∈ 2:3]...]) |> typeof <: Array
15+
#@test (η = Fatou.newton_raphson(:(z^3-1),1); ξ = SyntaxTree.genlatest(η,[:z,:c]); ζ = 2.1; [ξ(ζ,0), [Fatou.recomp(η,ζ,k) for k ∈ 2:3]...]) |> typeof <: Array
1616
# fix for case k ∈ 2:4+

0 commit comments

Comments
 (0)