polar(2+2i)
Let's write 2 + 2i in polar form: rexp(iθ), where r is the modulus and θ is an argument
The modulus of the complex number a + ib is a2 + b2 thus:
ⅰ mod(2 + 2i) = 22 + 22
22 + 22
ⓘ Calculate powers before multiplications, additions and subtractions. With a positive integer exponent, a power corresponds to a repeated product: 22 = 2×2 = 4■Powers are computed before multiplications, additions and subtractions. A power with a positive integer exponent is a repeated product: 22 = 2×2 = 4
4 + 4
ⓘ Start by calculating what is inside the parentheses: 4 + 4 = 8
8
ⓘ Let's look for the largest square dividing 8, 4 = 22, and take it out of the root: 8 = 4×2 = 4×2 = 2×2
2×2
For a nonzero complex number a + ib, the argument is the directed angle from the positive real axis to the vector (a, b); depending on the signs of a and b, it is 0, π, π2, -π2, atan(ba), atan(ba) + π or atan(ba) -π:
ⅰ arg(2 + 2i) = arctan(22)
arctan(22)
ⓘ We simplify the fraction by dividing the numerator and the denominator by 2, their greatest common divisor: 22 = 1
arctan(1)
ⓘ acos, asin and atan give the principal angle whose cosine, sine or tangent respectively equals the number, here a remarkable value: arctan(1) = π4
π4
So the polar form is:
ⅰ polar(2 + 2i) = 2×2×exp(i×π4)
2×2×exp(i×π4)
ⓘ Multiplying a fraction by a term multiplies its numerator: i×π4 = iπ4
2×2×exp(iπ4)
▶Result:   2exp(iπ4)×2