Cody

# Problem 44945. Calculate BMI

Solution 1979948

Submitted on 17 Oct 2019 by ME
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
hw = [66 155;60 140;72 166;58 160;75 215]; bmi_correct = [25.0700;27.3990;22.5607;33.5100;26.9293]; assert(all(abs(bmi_calculator(hw) - bmi_correct) < 1e-4))

bmi = 25.0700 27.3990 22.5607 33.5100 26.9293

2   Pass
hw = [10 80]; bmi_correct = 563.6375; assert(all(abs(bmi_calculator(hw) - bmi_correct) < 1e-4))

bmi = 563.6375
{"ft_lang_label":"__label__en","ft_lang_prob":0.50726616,"math_prob":0.9605927,"size":612,"snap":"2020-34-2020-40","text_gpt3_token_len":228,"char_repetition_ratio":0.118421055,"word_repetition_ratio":0.06896552,"special_character_ratio":0.48039216,"punctuation_ratio":0.20437956,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9706839,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-26T03:13:13Z\",\"WARC-Record-ID\":\"<urn:uuid:bef7abe2-cd88-476a-aed6-695c0b39ea4b>\",\"Content-Length\":\"77047\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:1eb433be-9dda-4fbc-a3b0-d4a864b54f6d>\",\"WARC-Concurrent-To\":\"<urn:uuid:76ef462c-7c17-4c30-a7b5-59a272bb8236>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://nl.mathworks.com/matlabcentral/cody/problems/44945-calculate-bmi/solutions/1979948\",\"WARC-Payload-Digest\":\"sha1:5TLI4UNENSWWRYUC2DXBNGLZFNMOXRUR\",\"WARC-Block-Digest\":\"sha1:NHYCSEQLDGC5H27YNSP6UWRBAZOCXQIW\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400232211.54_warc_CC-MAIN-20200926004805-20200926034805-00509.warc.gz\"}"}