Code covered by the BSD License

### Jedediah Frey (view profile)

Solves for two unknowns in a mechanical linkage system.

examples.m
```%% Linkage Solver Examples

% Consider this simple five bar linkage with shown unknowns.
%          O
%         / \ ?*
%        /   \
%   (5) /     \ (?)
%      /       \
%     / 53.87*  \
%    O           O
%    |           |
%    |           |
%(6) |           | (6)
%    |           |
%    | 90*   90* |
%    O - - - - - O
%         (6)

%Working clockwise:
%%

%  Linkage 1 is of length 5 and is at 90 degrees.
%  Linkage 3 is of length 5 and at 270 degrees.
%  Linkage 4 is of length 5 and at 180 degrees.
% Alternative ways to call link_solver that will get the correct solution:
%%
%%
%%
%%
% Five bar -  Plotting Example

%         (?)
%    O - - - - - O
%    | ?     90* |
%    |           |
%(5) |           | (5)
%    |           |
%    | 90*   90* |
%    O - - - - - O
%         (5)
%  Linkage 1 is of length 5 and is at 90 degrees.
%  Linkage 3 is of length 5 and at 270 degrees.
%  Linkage 4 is of length 5 and at 180 degrees.

%%

%%
%%
%%
%%
% Plotting example.
draw_bar(ans);

%% Four bar linkage - Multiple input
% Legend on
% Legend off

%% Guessing vs No Guesses - four bar linkage
% Supplying a guess for the unknown variables is not manditory, however it
% is suggested as certain input configurations the solver will correctly
% solve for the unknowns, although the linkage may not look as expected.

%%
% No guesses

%%
% Guesses

%%
% Guesses for multiple linkage orientations

%%
% Equilateral Triangle

%%
% Isosceles Triangle