Cody

# Problem 2016. Area of an equilateral triangle

Solution 1254902

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
x = 1; y_correct = sqrt(3)/4; tolerance = 1e-12; assert(abs(equilateral_area(x)-y_correct)<tolerance)

2   Pass
x = 2; y_correct = sqrt(3); tolerance = 1e-12; assert(abs(equilateral_area(x)-y_correct)<tolerance)

3   Pass
x = 3; y_correct = sqrt(3)*9/4; tolerance =1e-12; assert(abs(equilateral_area(x)-y_correct)<tolerance)

### 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.62282336,"math_prob":0.98806226,"size":671,"snap":"2020-45-2020-50","text_gpt3_token_len":213,"char_repetition_ratio":0.15142429,"word_repetition_ratio":0.021276595,"special_character_ratio":0.32041728,"punctuation_ratio":0.09756097,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9940753,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-02T01:47:28Z\",\"WARC-Record-ID\":\"<urn:uuid:f10e4561-d03b-4465-82d6-b78e0b54a281>\",\"Content-Length\":\"80195\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:bb938378-0c11-4f26-9fbe-4925b2807028>\",\"WARC-Concurrent-To\":\"<urn:uuid:8c0e7b05-7d15-449a-85b2-8f234b6acd5e>\",\"WARC-IP-Address\":\"184.24.72.83\",\"WARC-Target-URI\":\"https://kr.mathworks.com/matlabcentral/cody/problems/2016-area-of-an-equilateral-triangle/solutions/1254902\",\"WARC-Payload-Digest\":\"sha1:MEK3BZAC5H2G7HVZYAROVRXHHAHUPJFT\",\"WARC-Block-Digest\":\"sha1:6WLY2CZVFT6CP7KITGWO4RHKQUUTHPL5\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141685797.79_warc_CC-MAIN-20201201231155-20201202021155-00338.warc.gz\"}"}