Code covered by the BSD License  

Highlights from
Oblique Spherical Triangle toolbox

image thumbnail
from Oblique Spherical Triangle toolbox by Rody Oldenhuis
solves the general oblique spherical triangle

sasd(a, C, b)
function [c1, A1, B1, c2, A2, B2] = sasd(a, C, b)
%SASD   gives both solutions to the side-angle-side problem, in degrees.
%
%   SASD(a, C, b) returns the remaining unknowns of the spherical triangle, 
%   [c1, A1, B1, c2, A2, B2]. 
%
%   See also SAS, ACOS2.

% Rody P.S. Oldenhuis
% Delft University of Technology
% Last edited: 23/Feb/2009
    
    % find both solutions by calling sas directly
    r2d = 180/pi;   d2r = 1/r2d;
    [a, C, b] = deal(a*d2r, C*d2r, b*d2r);
    [c1, A1, B1, c2, A2, B2] = sas(a, C, b);
    [c1, A1, B1, c2, A2, B2] = deal(c1*r2d, A1*r2d, B1*r2d, c2*r2d, A2*r2d, B2*r2d);

end    

Contact us at files@mathworks.com