Do task 2 using python.
▾ Converting Between Cartesian and Polar Form Cartesian Form Polar Form [ ] 20 = 3 + 2j angle-math.atan (ze.imag / ze.real) radius=abs(ze) print (radius, angle) radius1, angle1 cmath.polar(ze) print (radius1, angle1) print(cmath.isclose(radius, radius1)) print(cmath.isclose(angle, angle1)) 3.605551275463989 0.5880026035475675 3.605551275463989 0.5880026035475675 True True Task 2: Find equal. Hint: You may want to look into cmath.rect(), to convert back. [ ] # YOUR CODE HERE z=x+yi z=x+iy=r(cos+ i sind) = reid r= |z| = √√(2² + y²) ¹¹(²/1) = tan-1 for of z = 34+27i, and convert it back cartesian form see if they are
Do task 2 using python.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am