JuliaAlgebra / DynamicPolynomials.jl

Multivariate polynomials implementation of commutative and non-commutative variables
Other
60 stars 21 forks source link

Filter coefficients smaller than given tolerance #61

Open mforets opened 4 years ago

mforets commented 4 years ago

Sometimes it's useful to filter out the coefficients that satisfy a certain condition, eg. delete those that are smaller than a given tolerance. It should be easy to add this feature by generalizing

https://github.com/JuliaAlgebra/DynamicPolynomials.jl/blob/0b64f1614ce166854985e8d3205dd1aedd0a763a/src/poly.jl#L140