複素素数、ほとんど忘れた。
python
1from cmath import phase
2from math import degrees
3
4
5A = 79 + 153j
6B = 130 + 73J
7C = 206 + 25j
8
9# 確認用
10# A = 2 + 2j
11# B = 1 + 1j
12# C = 1 + -1j
13
14BA = A - B
15BC = C - B
16
17print("θ(BA)=%f°" % degrees(phase(BA)))
18print("θ(BC)=%f°" % degrees(phase(BC)))
19print("∠ABC=%f°" % degrees(phase(BA / BC)))