A325 of 29
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

A3 · Lesson 25 · Notation

One number, many ways to write it

A datasheet writes an impedance as 50∠−30°Ω. A physics book writes 50e−iπ/6. Python prints (43.30127018922194-25j). A calculator shows 43.30-25.00i. They're all the same number. Reading any of them without stumbling is a skill of its own, and it's the last piece before phasors go to work in circuits.

Play

  • Set the length and the angle. The strip writes the same number in rectangular form and with its angle in degrees and in radians.
  • Find the number Python would print as (-1+1.7320508075688772j). What are its length and angle?

Predict

A calculator in radian mode shows the angle of 1∠90°. What does it display?

Name it

A field guide to complex notation

You'll seeIt means
a+jb, a+bj, a+ibthe same rectangular form; physics and math use i
r∠θpolar form; θ is usually in degrees
rejθpolar form; θ must be in radians
rcisθr(cos⁡θ+jsin⁡θ), an older shorthand
𝐕, V~, V¯, V^a phasor; books differ in how they mark it
z* or z¯the conjugate
|z|, arg⁡z, ∠zthe magnitude, and the angle

Peak or RMS. A phasor written 120∠0° V might mean an amplitude of 120 V or an RMS value of 120 V (an amplitude of 170 V). Power engineering almost always uses RMS phasors; signal and control books often use amplitudes. Look for the convention before you compute a power.

On a computer. Python writes j after the number, as 3+4j, and its cmath module does the conversions:

import cmath
z = 3 + 4j
abs(z)               # 5.0, the magnitude
cmath.phase(z)       # 0.927..., the angle in radians
cmath.rect(5, 0.927) # back to (3+4j), approximately

Angles in code are always in radians. MATLAB, Julia and numpy follow the same rules, and spreadsheets have functions like IMABS and IMARGUMENT.

On a calculator. Most scientific calculators have a complex mode with a ∠ key and a key to switch between rectangular and polar display. Set the angle mode first, and remember that a number like 4.7E3∠-30 mixes engineering notation with polar form.

Worked example

European mains is quoted as 230∠0° V. What is its amplitude?

Show the solution
  1. Read the convention. Power engineers quote phasors as RMS values.
  2. Convert to amplitude. A sine's amplitude is 2 times its RMS: 2302=325V
  3. When it isn't stated. When a phasor doesn't say whether it's RMS or amplitude, check the context: power and mains work is almost always RMS, signal work often amplitude.

Answer the amplitude is 325 V.

Worked example

In Python, how do you make 5∠30°, and what does it print?

Show the solution
  1. Convert the angle to radians. cmath.rect wants the angle in radians, so call cmath.rect(5, math.radians(30)).
  2. The output. It prints (4.330127018922194+2.4999999999999996j).
  3. Read it. Python writes j after the number, and the tiny error in the imaginary part is floating-point rounding: it's 2.5.

Answer cmath.rect(5, math.radians(30)), which prints (4.330127018922194+2.4999999999999996j).

Worked example

Write 5+j3 in polar form with the angle in degrees, in exponential form with the angle in radians, and as Python would.

Show the solution
  1. Length. r=52+32=5.831
  2. Angle in degrees. arctan⁡(3/5)=30.96° so it's 5.831∠30.96°.
  3. Angle in radians. 30.96×π/180=0.5404 so it's 5.831ej0.5404.
  4. In Python. Python writes 5+3j, and abs(5+3j) and cmath.phase(5+3j) give back 5.831 and 0.5404, in radians.

Answer 5.831∠30.96°, 5.831ej0.5404, and 5+3j in Python.

Check

Match each way of writing a number with the same value.

  1. A−2
  2. B5∠53.13°
  3. C5∠0.927°
  4. D1∠90°
  5. E1−j
  6. F2∠90°

Check

To write 4∠30° as 4ejθ, what must θ be?

Check

A phasor is given as 230∠0° V RMS. What is the amplitude of the voltage?

Check

Python's cmath.phase(complex(−6, −8)) returns what number?

Check

Write z=−3+j4 in other forms.

(a)

What is |z|?

(b)

What is its angle in radians, as cmath.phase gives it?

(c)

And in degrees?

Check

A number is written as r∠d°, with the angle in degrees. Convert it.

Step 1

What is the angle in radians?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

A classmate types cmath.rect(5, 30) into Python, expecting 5∠30°, and gets an answer near 0.77−j4.94. What went wrong?

Practice

Keep practicing

7 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.