Skip to content

Commit

Permalink
Use ca^2 instead of ca*ca; important for Intervals
Browse files Browse the repository at this point in the history
  • Loading branch information
Luis Benet committed Apr 18, 2018
1 parent 2a646b8 commit 4d5ac34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/power.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ Return `c = a*a` with no allocation; all parameters are `HomogeneousPolynomial`.
iszero(ca) && continue
inda = idxTb[na]
pos = posTb[2*inda]
c[pos] += ca * ca
c[pos] += ca^2
@inbounds for nb = na+1:num_coeffs_a
cb = a[nb]
iszero(cb) && continue
Expand Down

0 comments on commit 4d5ac34

Please sign in to comment.