I want to find the roots of an implicit function whose dependant variable is impossible to isolate. In particular, I want to find a array of outputs for a given array of inputs. That function is
1.5786+3*cosd(theta4-1.0714*cosd(theta2)-cosd(theta4-theta2)=0
Here, theta2 is the input and theta4 is the output. A function m-file:
function theta4 = fourbar(theta2)
1.5786+3*cosd(theta4(i))-1.0714*cosd(theta2(i))-cosd(theta4(i)-theta2(i))
In the command prompt with an initial guess of 0.01 does not work:
How can I pass the elements of theta2 to the function 'fourbar' and then solve for theta4 in another array?