diff options
author | Sudipto Mallick <> | 2024-01-02 03:38:10 +0000 |
---|---|---|
committer | Sudipto Mallick <> | 2024-01-02 03:38:10 +0000 |
commit | 7451edff7692e86c5238ff7bc6659825e242a84e (patch) | |
tree | 830fe25caf403869fe77df83bc44822ea6f5f11d /python/code/1/3.txt | |
parent | a70e0a59817ce06a3dd23b3750ae16ee6660deaf (diff) | |
download | zadania-7451edff7692e86c5238ff7bc6659825e242a84e.tar.gz |
Quick backup, need to be rewritten
Diffstat (limited to 'python/code/1/3.txt')
-rw-r--r-- | python/code/1/3.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/python/code/1/3.txt b/python/code/1/3.txt new file mode 100644 index 0000000..90ebdbe --- /dev/null +++ b/python/code/1/3.txt @@ -0,0 +1,17 @@ +>>> 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) + |