三角函数相关公式
积化和差
sin(a)sin(b)=-1/2*[cos(a+b)-cos(a-b)]
cos(a)cos(b)=1/2*[cos(a+b)+cos(a-b)]
sin(a)cos(b)=1/2*[sin(a+b)+sin(a-b)]
cos(a)sin(b)=1/2*[sin(a+b)-sin(a-b)]
两角和公式
sin(A+B)=sinAcosB+cosAsinB
sin(A-B)=sinAcosB-cosAsinB
cos(A+B)=cosAcosB-sinAsinB
cos(A-B)=cosAcosB+sinAsinB
tan(A+B)=(tanA+tanB)/(1-tanAtanB)
tan(A-B)=(tanA-tanB)/(1+tanAtanB)
cot(A+B)=(cotAcotB-1)/(cotB+cotA)
cot(A-B)=(cotAcotB+1)/(cotB-cotA)