Cody

# Problem 1141. Volume difference between Ellipsoid and Sphere

Solution 1135403

Submitted on 7 Mar 2017 by Matteo Raso
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;b=2;c=8; y_correct = 100; assert(isequal(ellipsoid_sphere_diff(a,b,c),y_correct))

2   Pass
a=4;b=4;c=4; y_correct =0; assert(isequal(ellipsoid_sphere_diff(a,b,c),y_correct))

3   Pass
a=3;b=5;c=8; y_correct= 389; assert(isequal(ellipsoid_sphere_diff(a,b,c),y_correct))

4   Pass
a=4;b=6;c=8; y_correct=536; assert(isequal(ellipsoid_sphere_diff(a,b,c),y_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.5421993,"math_prob":0.9724136,"size":774,"snap":"2019-51-2020-05","text_gpt3_token_len":244,"char_repetition_ratio":0.14545454,"word_repetition_ratio":0.0,"special_character_ratio":0.31912145,"punctuation_ratio":0.19298245,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9984294,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-22T09:32:15Z\",\"WARC-Record-ID\":\"<urn:uuid:ab7503ad-0ea0-40aa-87fc-d13681a536f0>\",\"Content-Length\":\"73138\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:2d3e66e4-a526-4fdb-9cb5-0649fcf8d28d>\",\"WARC-Concurrent-To\":\"<urn:uuid:62f198ef-5660-4769-be2e-90c8c58d3a22>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/1141-volume-difference-between-ellipsoid-and-sphere/solutions/1135403\",\"WARC-Payload-Digest\":\"sha1:UPKJKZDEYPJC324SXLI6AYPPFFIDZIFW\",\"WARC-Block-Digest\":\"sha1:4SPZ3HJOEZEDDIYP5KB4QJOFTBCQIWVR\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250606872.19_warc_CC-MAIN-20200122071919-20200122100919-00519.warc.gz\"}"}