If this is your actual use case, then I suggest checking out the Polynomials.jl package.
In particular, there is a more efficient algorithm (Horner's algorithm) that you can use to actually evaluate such a function.
If this is your actual use case, then I suggest checking out the Polynomials.jl package.
In particular, there is a more efficient algorithm (Horner's algorithm) that you can use to actually evaluate such a function.