Cody

# Problem 1026. Solving a quadratic equation

Solution 2665082

Submitted on 7 Jul 2020
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; b = 2; c = 1; y_correct = -1; assert(isequal(solution(a,b,c),y_correct))

2   Fail
a = 1; b = 0; c = 1; y_correct = [-i i]; assert(isequal(solution(a,b,c),y_correct))

Assertion failed.

3   Fail
a = 1; b = -2; c = -3; y_correct = [3 -1]; assert(isequal(solution(a,b,c),y_correct))

Assertion failed.
{"ft_lang_label":"__label__en","ft_lang_prob":0.6217147,"math_prob":0.9982019,"size":570,"snap":"2020-34-2020-40","text_gpt3_token_len":183,"char_repetition_ratio":0.17137809,"word_repetition_ratio":0.07368421,"special_character_ratio":0.36666667,"punctuation_ratio":0.1904762,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9970698,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-29T11:32:39Z\",\"WARC-Record-ID\":\"<urn:uuid:da17b770-c700-435d-960d-7198cb4c36f2>\",\"Content-Length\":\"76451\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:4ec4e64c-9600-4b5a-af05-bf36f24ed4cf>\",\"WARC-Concurrent-To\":\"<urn:uuid:529c0eec-cd00-4772-a31e-3e324001da74>\",\"WARC-IP-Address\":\"23.212.144.59\",\"WARC-Target-URI\":\"https://uk.mathworks.com/matlabcentral/cody/problems/1026-solving-a-quadratic-equation/solutions/2665082\",\"WARC-Payload-Digest\":\"sha1:EKDFCAGBI3SWU3LFYHQBYWIT47HXBPS7\",\"WARC-Block-Digest\":\"sha1:GFXHDXIY7SA3QNRPAHCRDGFC7HOU43PC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600401641638.83_warc_CC-MAIN-20200929091913-20200929121913-00781.warc.gz\"}"}