function [f] = placetd_hw2_lab2solver(x) % This is the system of equations to be solved in Lab2 - Spring 2012 % The method employed will be fsolve % where x(1) = w % x(2) = H1 % x(3) = H2 % x(4) = a % x(5) = b % global L1 L2 h f(1) = x(1)^2+x(2)^2-L1^2; f(2) = x(2)/x(1)-h/x(5); f(3) = x(1)-x(4)-x(5); f(4) = x(3)/x(1)-h/x(4); f(5) = x(1)^2+x(3)^2-L2^2; end