Cody

# Problem 2021. Is this triangle right-angled?

Solution 2964832

Submitted on 18 Sep 2020 by Lee Chih Jung
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 = 3; b = 4; c = 5; flag_correct = true; assert(isequal(isRightAngled(a,b,c),flag_correct))

flag = logical 1

2   Pass
a = 2; b = 3; c = 4; flag_correct = false; assert(isequal(isRightAngled(a,b,c),flag_correct))

flag = logical 0

3   Pass
a = 5; b = 12; c = 13; flag_correct = true; assert(isequal(isRightAngled(a,b,c),flag_correct))

flag = logical 1

### Community Treasure Hunt

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

Start Hunting!
{"ft_lang_label":"__label__en","ft_lang_prob":0.56365365,"math_prob":0.9899585,"size":750,"snap":"2020-45-2020-50","text_gpt3_token_len":222,"char_repetition_ratio":0.14209116,"word_repetition_ratio":0.0862069,"special_character_ratio":0.304,"punctuation_ratio":0.15972222,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9911439,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-22T10:05:04Z\",\"WARC-Record-ID\":\"<urn:uuid:0df9561a-2133-413d-87ac-0d883e136d98>\",\"Content-Length\":\"80117\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:abcf869a-0e22-4737-a188-2fd0b3e8f8cb>\",\"WARC-Concurrent-To\":\"<urn:uuid:675800cb-9b64-4d39-98d4-e5d088970f69>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://au.mathworks.com/matlabcentral/cody/problems/2021-is-this-triangle-right-angled/solutions/2964832\",\"WARC-Payload-Digest\":\"sha1:J3QABS3KX6YNNI77DWIGDT3KBMOD6XLR\",\"WARC-Block-Digest\":\"sha1:EIRDJZQU7ZCO4LZ7N75TFDO3AABPWXSO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107879362.3_warc_CC-MAIN-20201022082653-20201022112653-00649.warc.gz\"}"}