Closed richardrl closed 11 months ago
The solution to fix this error is to declare all lists explicitly as polynomials with floating point datatype, so:
Vector{Polynomial{true, Float64}}()
instead of:
[]
You have the polynomial_type
function to help you for this (note that the polynomial type has changed with the latest release)
Is there any reason why the polynomial coefficients would be forced to convert into integer?
I have the following polynomial experssion that I am append!'ing to a list: 0.5rotmat_flat_var_original[1,1] - 0.5rotmat_flat_var_original[1,2] + rotmat_flat_var_original[1,4] - canonical_vertices_Bo_W[1,1,1]
However, the append throws an error:
EDIT: Upon further investigation, I figured out the error. If you have a list of undefined data type, then you add a couple polynomials with only integer components, the list datatype becomes
Vector{Polynomial{true, Int64}}
. After you try to add non-integer coefficient polynomials, you will get the error above.