Cody

# Problem 2018. Side of a rhombus

Solution 1687297

Submitted on 6 Dec 2018 by test test
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(5)/2; tolerance = 1e-12; assert(abs(rhombus_side(x)-y_correct)<tolerance)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rhombus_side (line 2) In ScoringEngineTestPoint1 (line 4) In solutionTest (line 3)]

2   Pass
x = 3; y_correct = 5/2; tolerance = 1e-12; assert(abs(rhombus_side(x)-y_correct)<tolerance)

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rhombus_side (line 2) In ScoringEngineTestPoint2 (line 4) In solutionTest (line 5)]

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

[Warning: Function assert has the same name as a MATLAB builtin. We suggest you rename the function to avoid a potential name conflict.] [> In unix (line 32) In rhombus_side (line 2) In ScoringEngineTestPoint3 (line 4) In solutionTest (line 7)]

### 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.67286545,"math_prob":0.8691264,"size":1365,"snap":"2020-45-2020-50","text_gpt3_token_len":408,"char_repetition_ratio":0.12931667,"word_repetition_ratio":0.49514562,"special_character_ratio":0.2893773,"punctuation_ratio":0.09128631,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9522259,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-11-30T21:33:42Z\",\"WARC-Record-ID\":\"<urn:uuid:1b61db6b-d600-4ecf-bc2c-111047f6b913>\",\"Content-Length\":\"80800\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:10728960-ec2b-4b80-a8bb-885a564dec93>\",\"WARC-Concurrent-To\":\"<urn:uuid:16919f3d-2261-4428-98b2-adb781a72e34>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://it.mathworks.com/matlabcentral/cody/problems/2018-side-of-a-rhombus/solutions/1687297\",\"WARC-Payload-Digest\":\"sha1:46MIJD4E6SO26YFLV6STSHTWYKQKDJHI\",\"WARC-Block-Digest\":\"sha1:TL7RBBUV2CRRE2RHITZKWZ6FH3XODP6H\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141486017.50_warc_CC-MAIN-20201130192020-20201130222020-00329.warc.gz\"}"}