JuliaAlgebra/FixedPolynomials.jl

rounding polynomials

Closed this issue · 0 comments

Hi could you add this function?

function round(f::Array{FixedPolynomials.Polynomial{T}}, i::Int) where {T<:Number}
    map(f) do f1
        FP.Polynomial(f1.exponents, round.(f1.coefficients, i))
    end
end
function round(f::FixedPolynomials.Polynomial{T}, i::Int) where {T<:Number}
    round([f],i)
end