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)?
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)?
@Kalevi thanx for response.
Actually, I wanted to make a program to form extended euclidean representation of two polynomials(under a field ) so positive integral coefficents is necessary as far as I can see. setting field =True was not able to solve it. just out of curiosity, what effect does field =True parameter have?