Cody

# Problem 44943. Calculate Amount of Cake Frosting

Solution 2015898

Submitted on 12 Nov 2019 by Vaibhav Shende
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
r = 3; h = 2; y_correct = 65.9734; assert(abs(func_frosting(r,h) - y_correct) < 1e-4)

SA = 65.9734

2   Pass
r = 0.5; h = 0.25; y_correct = 1.5708; assert(abs(func_frosting(r,h) - y_correct) < 1e-4)

SA = 1.5708
{"ft_lang_label":"__label__en","ft_lang_prob":0.50238883,"math_prob":0.93800884,"size":426,"snap":"2020-10-2020-16","text_gpt3_token_len":157,"char_repetition_ratio":0.1492891,"word_repetition_ratio":0.083333336,"special_character_ratio":0.42723006,"punctuation_ratio":0.17894737,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9859801,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-02-25T19:55:07Z\",\"WARC-Record-ID\":\"<urn:uuid:b86cb239-6c34-4ebe-9518-7a6f72d9fadd>\",\"Content-Length\":\"72654\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:445717b8-9e7a-4657-a241-393c96ed8177>\",\"WARC-Concurrent-To\":\"<urn:uuid:7069706b-0e43-4a7f-8b35-091f672c954d>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://kr.mathworks.com/matlabcentral/cody/problems/44943-calculate-amount-of-cake-frosting/solutions/2015898\",\"WARC-Payload-Digest\":\"sha1:QOSQHGUCDCUHY46U267L4EHHOOTW5LEM\",\"WARC-Block-Digest\":\"sha1:4PG7FD2WZ7QDTV75WHV4ALQHTIU3M76K\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-10/CC-MAIN-2020-10_segments_1581875146127.10_warc_CC-MAIN-20200225172036-20200225202036-00138.warc.gz\"}"}