How to input complex number in polar coordinate?

I have a complex number 25∠10. How can I input it such as polar(magnitude, angle)?
what are the functions to convert (from degree to rad) and (rad to degree)?

julia> 25 * cis(deg2rad(10))
24.6201938253052 + 4.341204441673258im

using cis and deg2rad (see also rad2deg).

3 Likes

Linking this nice solution by @stevengj too.

1 Like