tan(a+b) = (tana+tanb)/(1-tana*tanb)
cot(a+b) = (1-tanatanb)/(tana+tanb)
由韦达定理
tana+tanb = -b/a
tana*tanb = c/a
带入求解即可