sin(a+b)=sinacosb+cosasinb
sin(a-b)=sinacosb-cosasinb
cos(a+b)=cosacosb-sinasinb
cos(a-b)=cosacosb+sinasinb
sinacosb=[sin(a+b)+sin(a-b)]/2
cosasinb=[sin(a+b)-sin(a-b)]/2
cosacosb=[cos(a+b)+cos(a-b)]/2
sinasinb=[cos(a-b)-cos(a+b)]/2
sin(a+b)=sinacosb+cosasinb
sin(a-b)=sinacosb-cosasinb
cos(a+b)=cosacosb-sinasinb
cos(a-b)=cosacosb+sinasinb
sinacosb=[sin(a+b)+sin(a-b)]/2
cosasinb=[sin(a+b)-sin(a-b)]/2
cosacosb=[cos(a+b)+cos(a-b)]/2
sinasinb=[cos(a-b)-cos(a+b)]/2