On Wednesday, January 11, 2017 at 6:29:40 PM UTC+2, swapnil sharma wrote: > > trunc(2*x**3 + 3*x**2 + 5*x + 7, 3) gives result : -x**3 - x + 1. is there > some way to get coefficents positive > instead of negative (i.e. here soln be like: 2*x**3+2*x+1)? > > One possibility is to write trunc(2*x**3 + 3*x**2 + 5*x + 7, 3, field=True) to avoid integer coefficients. Otherwise the current implementation will attempt to use representatives of least absolute value.
-- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/8d0df4e9-efb9-408c-b005-ce2cd6937f35%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.