(1) tan(派/4+A)=2
(tan派/4+tanA)/(1-tan 派/4*tanA)=2
(1+tanA)/(1-tanA)=2
1+tanA=2(1-tanA)
tanA=1/3
(2) 原式=(sinAcosB+sinBcosA-2sinAcosB)/(2sinAsinB+cosAcosB-sinAsinB)
=(sinBcosA-sinAcosB)/(sinAsinB+cosAcosB)
=sin(B-A)/cos(B-A)
=tan(B-A)
=(tanB-tanA)/(1+tanB*tanA)
=(1/2-1/3)/(1+1/2*1/3)
=1/7