import math
rtd = 57.295777 # 弧度转角度的常量
BE = 1.5; AD = 4.2; AB = 2.6; AC = 5.0; 角C = 角ACD = 60 / rtd
AE = AD / 2.0
#print(AE)
cos角A = (AB * AB + AE * AE - BE * BE) / 2 / AB / AE
#print(cos角A)
角A = math.acos(cos角A) * rtd; print(角A)
角ACG = 90; 角ACD = 角C = 60;
角CDF = 角A + 角C
#print(角CDF)
角DCF = 90 - 角CDF
#print(角DCF)
BF除以CF = AB / AC
CF除以CD = math.cos(角DCF / rtd)
#print(CF除以CD)
CG除以CD = math.sin(角DCF / rtd) * math.cos(角A / rtd)
#print(CG除以CD)
CF除以CD = (math.cos(角DCF / rtd)) ** (-1)
#print(CF除以CD)
CG = AC * math.tan(角A); print(CG)
CF = ( (AC ** (-2) + CG ** (-2)) ** (-1) ) ** 0.5
#print(CF)
CD = CF * math.cos(角DCF / rtd)
print(CD)
d = AC ** (-2) + CG ** (-2) - CF ** (-2); print(d)