Skip to content

Commit d7a20cd

Browse files
committed
fix bottom bound
1 parent 63894ce commit d7a20cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/U_polynomials.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,14 @@ Uk_poly_Kn(p, v, p2, ::Type{Float32}) = Uk_poly3(p, v, p2)[2]
1212
Uk_poly_Kn(p, v, p2, ::Type{Float64}) = Uk_poly5(p, v, p2)[2]
1313

1414
@inline function split_evalpoly(x, P)
15+
# polynomial P must have an even number of terms
1516
N = length(P)
1617
xx = x*x
1718

1819
out = P[end]
1920
out2 = P[end-1]
2021

21-
for i in N-2:-2:1
22+
for i in N-2:-2:2
2223
out = muladd(xx, out, P[i])
2324
out2 = muladd(xx, out2, P[i-1])
2425
end

0 commit comments

Comments
 (0)