How to make sin(pi) and cos(pi/2) zero?
问题 I understand that in Python sin(pi) and cos(pi/2) won't produce 0 , but I'm making calculations with matrices and I need to use those values. I'm using SymPy and at first the values of sin(pi) and cos(pi/2) are a little annoying. After some multiplications they start to get in the way. Is there a way to make those values be equal to 0 in the entire module? How can I change it in the middle of expressions? I'll use this matrix as an example: A = Matrix([ [(-sin(theta1)*sin(theta2)*cos(alpha2)