ERROR: LoadError: MethodError: no method matching +(::Array{Float64,1}, ::Int64) For element-wise addition, use broadcasting with dot syntax: array .+ scalar

This is the error. I think you want length(c_poly)+1 here?

(You also won’t get ideal performance from this style of code, but that’s a separate issue.)

1 Like