Cody

# Problem 144. Angle of triangle

Solution 71288

Submitted on 5 Apr 2012 by Kuifeng
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
ab=rand; bc=rand; ca=max(min(rand, ab+bc),abs(ab-bc)); tic; for k=1:10^3 [abc,bca,cab]=sides_to_angles(ab,bc,ca); end; your_time=toc/10^3 test_yours=round([abc,bca,cab]*10^4)/10^4 abc=acos((ab^2+bc^2-ca^2)/2/ab/bc); bca=acos((bc^2+ca^2-ab^2)/2/bc/ca); cab=acos((ca^2+ab^2-bc^2)/2/ca/ab); test_correct=round([abc,bca,cab]*10^4)/10^4 assert(isequal(test_yours,test_correct)) % assert(your_time<100e-6)

x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391 0.7241 x = 0.5784 1.8391...