solve a* cos(x) + b* cos(y) + c*( cos (y-x)) + d= 0 for x