From 76e40d6d32cb73815c4cc1f03fe4032ec2117f18 Mon Sep 17 00:00:00 2001 From: dcerkoney Date: Wed, 17 Apr 2024 14:23:36 -0400 Subject: [PATCH 1/2] Bugfix in function `CounterTerm._inverse(z)` --- src/common/counterterm.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/counterterm.jl b/src/common/counterterm.jl index 45353ac..93e1f40 100644 --- a/src/common/counterterm.jl +++ b/src/common/counterterm.jl @@ -328,8 +328,8 @@ function _inverse(z::AbstractVector{T}) where {T} zi[5] = -z[1] .^ 5 + 4z[1] .^ 3 .* z[2] - 3z[1] .* z[2] .^ 2 - 3z[1] .^ 2 .* z[3] + 2z[2] .* z[3] + 2z[1] .* z[4] - z[5] end if order >= 6 - zi[6] = z[1] .^ 6 - 5z[1] .^ 4 .* z[2] + 6z[1] .^ 2 .* z[2] .^ 2 + 4z[3] .* z[1] .^ 3 - -3z[1] .^ 2 .* z[4] - 6z[1] .* z[2] .* z[3] - z[2] .^ 3 + z[3] .^ 2 + 2z[2] .* z[4] + 2z[1] .* z[5] - z[6] + zi[6] = z[1] .^ 6 - 5z[1] .^ 4 .* z[2] + 6z[1] .^ 2 .* z[2] .^ 2 + 4z[3] .* z[1] .^ 3 - + 3z[1] .^ 2 .* z[4] - 6z[1] .* z[2] .* z[3] - z[2] .^ 3 + z[3] .^ 2 + 2z[2] .* z[4] + 2z[1] .* z[5] - z[6] end if order >= 7 error("order must be <= 5") From a4bf570c2a2320a3490d1d59fe6e98cfde6370e1 Mon Sep 17 00:00:00 2001 From: dcerkoney Date: Wed, 17 Apr 2024 23:23:30 -0400 Subject: [PATCH 2/2] Fix a typo --- src/common/counterterm.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/counterterm.jl b/src/common/counterterm.jl index 93e1f40..a1cd1aa 100644 --- a/src/common/counterterm.jl +++ b/src/common/counterterm.jl @@ -332,7 +332,7 @@ function _inverse(z::AbstractVector{T}) where {T} 3z[1] .^ 2 .* z[4] - 6z[1] .* z[2] .* z[3] - z[2] .^ 3 + z[3] .^ 2 + 2z[2] .* z[4] + 2z[1] .* z[5] - z[6] end if order >= 7 - error("order must be <= 5") + error("order must be <= 6") end return zi end