Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Get a complex number in polar form or polar exponential form
| ResourceFunction["ComplexToPolar"][z] returns the complex number z in polar exponential form. | |
| ResourceFunction["ComplexToPolar"][z,type] returns the complex number z with the form type. | 
Return a polar exponential form for a numeric quantity:
| In[1]:= | ![ResourceFunction["ComplexToPolar"][1 - 2 I]](https://www.wolframcloud.com/obj/resourcesystem/images/2f4/2f45757b-7d7e-4cc3-94d3-7e6dd82cc18d/6e263759cf4b103b.png) | 
| Out[1]= |  | 
Specify that you want the number in polar form:
| In[2]:= | ![ResourceFunction["ComplexToPolar"][1 + I, "Polar"]](https://www.wolframcloud.com/obj/resourcesystem/images/2f4/2f45757b-7d7e-4cc3-94d3-7e6dd82cc18d/0b867ffcd6cd3e07.png) | 
| Out[2]= |  | 
Specify that you want the number in polar exponential form:
| In[3]:= | ![ResourceFunction["ComplexToPolar"][1 - I, "Exponential"]](https://www.wolframcloud.com/obj/resourcesystem/images/2f4/2f45757b-7d7e-4cc3-94d3-7e6dd82cc18d/566f252cef84e6b4.png) | 
| Out[3]= |  | 
Return all forms as an Association:
| In[4]:= | ![ResourceFunction["ComplexToPolar"][-Sqrt[2], All]](https://www.wolframcloud.com/obj/resourcesystem/images/2f4/2f45757b-7d7e-4cc3-94d3-7e6dd82cc18d/3d5a1e116afbc080.png) | 
| Out[4]= |  | 
For symbolic input, ComplexToPolar returns unevaluated:
| In[5]:= | ![ResourceFunction["ComplexToPolar"][a + b I]](https://www.wolframcloud.com/obj/resourcesystem/images/2f4/2f45757b-7d7e-4cc3-94d3-7e6dd82cc18d/758059dbecbef867.png) | 
| Out[5]= |  | 
This work is licensed under a Creative Commons Attribution 4.0 International License