From 7856752d509ff3a94d5fb74f2a06d557f00d3d35 Mon Sep 17 00:00:00 2001 From: Jidong Xiao Date: Sun, 15 Oct 2023 20:52:14 -0400 Subject: [PATCH] adding lecture 14 --- lectures/14_operators/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lectures/14_operators/README.md diff --git a/lectures/14_operators/README.md b/lectures/14_operators/README.md new file mode 100644 index 0000000..77aeb41 --- /dev/null +++ b/lectures/14_operators/README.md @@ -0,0 +1,18 @@ +# Lecture 14 --- Problem Solving Techniques + +- Operators as non-member functions, as member functions, and as friend functions. + +## 14.1 Complex Numbers — A Brief Review + +- Complex numbers take the form z = a + bi, where i = +√ +−1 and a and b are real. a is called the real part, b is +called the imaginary part. +- If w = c + di, then +– w + z = (a + c) + (b + d)i, +– w − z = (a − c) + (b − d)i, and +– w × z = (ac − bd) + (ad + bc)i +- The magnitude of a complex number is √ +a +2 + b +2