Skip to content

Commit

Permalink
Merge pull request #38 from numericalEFT/bugfix
Browse files Browse the repository at this point in the history
Bugfix in function `CounterTerm._inverse(z)`
  • Loading branch information
dcerkoney authored Apr 18, 2024
2 parents b99e1ac + a4bf570 commit 4bc4bf3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/counterterm.jl
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,11 @@ 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")
error("order must be <= 6")
end
return zi
end
Expand Down

0 comments on commit 4bc4bf3

Please sign in to comment.