Cody

Problem 45179. The length of the equal sides of an isoceles triangle is 'a'.For all the possible (integer) values of the remaining side,find the associated angles between the two equal sides.

Solution 3019816

Submitted on 1 Oct 2020 by David Hill
  • Size: 37
  • This is the leading solution.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
a = 2; y_correct = [ 28.9550 97.1808]; assert(isequal(isoceles(a),y_correct))

2   Pass
a = 3; y_correct = [ 19.1881 38.9424 83.6206 112.8854]; assert(isequal(isoceles(a),y_correct))

3   Pass
a = 1; y_correct = []; assert(isequal(isoceles(a),y_correct))

Suggested Problems

More from this Author149

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!