How to proof with Sympy that a given Cartesian equation can be written as a given polar equation
问题 i have an assignment on sympy and am struggling with the following question: "Prove with the help of Sympy that 4*(x 2 + y 2 -ax) 3 = 27 a 2 (x 2 +y 2 ) 2 can be written using r = 4a*cos(theta/3) 3 ". I have tried to substitute x = r*cos(theta) and y = r*sin(theta) . Then I tried sp.solveset(eq, r) but I only got a very longset of {}, nothing like the given polar equation. Does anyone know how to do this (I can use sympy and numpy)? 回答1: The following code builds the equation from its left