sum and difference with sin and cos