I am working on a program which will predict the tides, but have come across a problem when using the simplified harmonic method of tidal prediction, I understand the whole thing but cannot do the following, this is what I have so far:
$$R\sin(r) = H\sin(\theta)$$
$$R\cos(r) = H\cos(\theta)$$
How do I obtain the values of just R and r alone?
EDIT 2! it is slightly more complex than first explained, this is more like what I am trying to work with:
$$R\sin(r) = A\sin(Y) + B\sin(Z)$$
$$R\cos(r) = A\cos(Y) + B\cos(Z)$$