Newton Rampson method to solve Ax + Bsin(x) = C