Code
Given constants x,y,b,c
ψ,ϕ = variables
x = b*cos(ψ)+ c*cos(ϕ)
y = b*sin(ψ)+ c*sin(ϕ)
Code
eliminating cos(ψ) and sin(ψ)
b*cos(ψ)= x - c*cos(ϕ)
b*sin(ψ)= Y - c*sin(ϕ)
I squared both sides and added both equations together and arrived at
b^2 = x^2 + c^2 + y^2 -2xc*cos(ϕ) -2yc*sin(ϕ)
View the cosines and sines as cos(2U) and sin(2U), while 2U=ϕ.
from wikipedia


Lastly, set a variable, t= tan(ϕ/2)
You will arrive at a quadratic, you will have to divide the roots by 2 and take the inverse tangent to get your final answer.
Code
ϕ=2tan^(-1)(t)
This is for an intro physics class?
This post was edited by saber_x3 on Sep 15 2013 11:01pm