Skip to content

Commit bbcacd3

Browse files
fix: fix wrapping causing errors in ia_solve
1 parent 4003640 commit bbcacd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/solver/ia_main.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,17 @@ function isolate(lhs, var; warns=true, conditions=[], complex_roots = true, peri
7777
if complex_roots
7878
for i in eachindex(rhs)
7979
for k in 0:(args[2] - 1)
80-
r = wrap(term(^, rhs[i], (1 // power)))
81-
c = wrap(term(*, 2 * (k), pi)) * im / power
80+
r = term(^, rhs[i], (1 // power))
81+
c = term(*, 2 * (k), pi) * im / power
8282
root = r * Base.MathConstants.e^c
8383
push!(new_roots, root)
8484
end
8585
end
8686
else
8787
for i in eachindex(rhs)
88-
push!(new_roots, wrap(term(^, rhs[i], (1 // power))))
88+
push!(new_roots, term(^, rhs[i], (1 // power)))
8989
if iseven(power)
90-
push!(new_roots, wrap(term(-, new_roots[end])))
90+
push!(new_roots, term(-, new_roots[end]))
9191
end
9292
end
9393
end

0 commit comments

Comments
 (0)