Sage equivalent to Mathematica Chop function?
Does anyone know a function in Sage equivalent to Mathematica _Chop()_ function ( http://reference.wolfram.com/language... )? I couldn't find any.
In fact, I would like to drop the imaginary parts that are close to zero of complex polynomial coefficients.
This shouldn't be difficult to implement but is something that I use a lot, it is strange not find an implementation.
Cordially
I guess you could just try
real_part()
if you are sure this is the case?Thank you, but _real_part()_ will not work in all cases.