Cody

Problem 2017. Side of an equilateral triangle

Solution 1677054

Submitted on 20 Nov 2018 by Huajie Zheng
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 = 1; x_correct = 2/sqrt(sqrt(3)); tolerance = 1e-12; assert(abs( side_length(A) - x_correct ) < tolerance)

2   Pass
A = sqrt(3); x_correct = 2; tolerance = 1e-12; assert(abs(side_length(A) - x_correct) < tolerance)

3   Pass
A = 2; x_correct = 2*sqrt(2)/sqrt(sqrt(3)); tolerance = 1e-12; assert(abs(side_length(A) - x_correct) < tolerance)
{"ft_lang_label":"__label__en","ft_lang_prob":0.50801426,"math_prob":0.996649,"size":615,"snap":"2019-26-2019-30","text_gpt3_token_len":198,"char_repetition_ratio":0.16693944,"word_repetition_ratio":0.104166664,"special_character_ratio":0.35609755,"punctuation_ratio":0.08256881,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9974925,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-06-24T19:18:31Z\",\"WARC-Record-ID\":\"<urn:uuid:57170b09-b5cd-4d5e-b633-578379e2ea7b>\",\"Content-Length\":\"71810\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:0d40447c-3a44-4b52-b2a6-c7956427482f>\",\"WARC-Concurrent-To\":\"<urn:uuid:7098171a-3038-49af-9e77-1853ab85a02a>\",\"WARC-IP-Address\":\"23.48.45.75\",\"WARC-Target-URI\":\"https://fr.mathworks.com/matlabcentral/cody/problems/2017-side-of-an-equilateral-triangle/solutions/1677054\",\"WARC-Payload-Digest\":\"sha1:USUBUOVNCH7IZAGWP6U5WKDW46XROIKQ\",\"WARC-Block-Digest\":\"sha1:53NEKQWKZ2VOWGZ4MHOOAFGKRZCTWZ57\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-26/CC-MAIN-2019-26_segments_1560627999709.4_warc_CC-MAIN-20190624191239-20190624213239-00083.warc.gz\"}"}