summary refs log tree commit diff stats
path: root/python/code/1/3.txt
diff options
context:
space:
mode:
Diffstat (limited to 'python/code/1/3.txt')
-rw-r--r--python/code/1/3.txt17
1 files changed, 0 insertions, 17 deletions
diff --git a/python/code/1/3.txt b/python/code/1/3.txt
deleted file mode 100644
index 90ebdbe..0000000
--- a/python/code/1/3.txt
+++ /dev/null
@@ -1,17 +0,0 @@
->>> a, b = 3 + 2j, 4 - 3j
->>> a + b, a - b, a * b, a / b
-((7-1j), (-1+5j), (18-1j), (0.24+0.68j))
->>> -a, -b
-((-3-2j), (-4+3j))
->>> (a + b) / (a - b)
-(-0.4615384615384615-1.3076923076923077j)
->>> abs(a), abs(b)
-(3.605551275463989, 5.0)
->>> a.imag, a.real
-(2.0, 3.0)
->>> a.conjugate(), b.conjugate()
-((3-2j), (4+3j))
->>> from cmath import phase
->>> phase(a), phase(b)
-(0.5880026035475675, -0.6435011087932844)
-