A3 · Lesson 25 · Notation
One number, many ways to write it
A datasheet writes an impedance as . A physics book writes . 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 . What does it display?
1.5708, which is . A quarter turn is 90° or radians, and a calculator in radian mode reports radians. Most mistakes with complex numbers on a calculator come from the angle mode, so check it before trusting any angle it gives you.
Name it
A field guide to complex notation
| You'll see | It means |
|---|---|
| , , | the same rectangular form; physics and math use |
| polar form; θ is usually in degrees | |
| polar form; θ must be in radians | |
| , an older shorthand | |
| , , , | a phasor; books differ in how they mark it |
| or | the conjugate |
| , , | the magnitude, and the angle |
Peak or RMS. A phasor written 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 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 V. What is its amplitude?
Show the solution
- Read the convention. Power engineers quote phasors as RMS values.
- Convert to amplitude. A sine's amplitude is times its RMS:
- 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 , and what does it print?
Show the solution
- Convert the angle to radians.
cmath.rectwants the angle in radians, so callcmath.rect(5, math.radians(30)). - The output. It prints
(4.330127018922194+2.4999999999999996j). - Read it. Python writes 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 in polar form with the angle in degrees, in exponential form with the angle in radians, and as Python would.
Show the solution
- Length.
- Angle in degrees. so it's .
- Angle in radians. so it's .
- In Python. Python writes
5+3j, andabs(5+3j)andcmath.phase(5+3j)give back 5.831 and 0.5404, in radians.
Answer , , and 5+3j in Python.
Check
Match each way of writing a number with the same value.
- A
- B
- C
- D
- E
- F
Check
To write as , what must θ be?
Check
A phasor is given as V RMS. What is the amplitude of the voltage?
Check
Python's cmath.phase(complex(−6, −8)) returns what number?
Check
Write in other forms.
(a)
What is ?
(b)
What is its angle in radians, as cmath.phase gives it?
(c)
And in degrees?
Check
A number is written as , 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°.
Step 2
What is the real part?
Step 3
Write it in exponential form.
Explain why
A classmate types cmath.rect(5, 30) into Python, expecting , and gets an answer near . What went wrong?
Python's cmath.rect takes the angle in radians, so it built radians. Thirty radians is nearly five full turns, which lands the point somewhere unrelated to 30°. They should convert first: cmath.rect(5, math.radians(30)), which gives about .
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.