Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
x**2 - 3/2*x + 1/2 を (x-1)*(x-1/2) に因数分解するように sympy に依頼するにはどうすればよいですか? 私が得た最も近いものは次のとおりです。
>>> (x**2 - Rational(3/2)*x + Rational(1/2)).factor() (x - 1)*(2*x - 1)/2