function rightTriangle(s1,s2)
% usage: rightTriangle(side1,side2)

h = sqrt(s1^2 + s2^2);

theta1 = asin(s1/h);
theta2 = asin(s2/h);

sin1 = s1/h;
cos1 = s2/h;
tan1 = s1/s2;


sin2 = s2/h;
cos2 = s1/h;
tan2 = s2/s1;

fprintf('hypotenuse = %.2f\n\n',h);

fprintf('theta1 is the angle between %.2f and %.2f\n',s2,h);
fprintf('theta2 is the angle between %.2f and %.2f\n\n',s1,h);

fprintf('theta1 = %.2f radians\n',theta1);
fprintf('sin(theta1) = %.2f\n',sin1);
fprintf('cos(theta1) = %.2f\n',cos1);
fprintf('tan(theta1) = %.2f\n\n',tan1);

fprintf('theta2 = %.2f radians\n',theta2);
fprintf('sin(theta2) = %.2f\n',sin2);
fprintf('cos(theta2) = %.2f\n',cos2);
fprintf('tan(theta2) = %.2f\n\n',tan2);