cosa+sina=√2[(√2/2)cosa+(√2/2)sina]=√2[sin(45)cosa+cos45sina]=√2sin(a+45)
cosa+sina=√2(sina*√2/2+cosa*√2/2)=√2(sinacosπ/4+cosasinπ/4)=√2sin(a+π/4)