Cody

# Problem 43158. Solve system of equation!

Solution 1466026

Submitted on 19 Mar 2018 by Jean-Marie Sainthillier
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 = [2 1 3; 1 1 2]; y_correct = x(:,1:end-1)\x(:,end); assert(isequal(solvesystem(x),y_correct))

ans = 1.0000 1.0000

2   Pass
x = [1 1 0; 1 -1 0]; y_correct = x(:,1:end-1)\x(:,end); assert(isequal(solvesystem(x),y_correct))

ans = 0 0
{"ft_lang_label":"__label__en","ft_lang_prob":0.5465191,"math_prob":0.9964913,"size":453,"snap":"2019-51-2020-05","text_gpt3_token_len":168,"char_repetition_ratio":0.13363029,"word_repetition_ratio":0.054054055,"special_character_ratio":0.42604858,"punctuation_ratio":0.1891892,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98299384,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-23T13:43:30Z\",\"WARC-Record-ID\":\"<urn:uuid:e45cbaeb-1af9-42ac-b780-60a54ada6749>\",\"Content-Length\":\"72609\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ddf0b410-21bc-40af-a032-bd2a34b05ae5>\",\"WARC-Concurrent-To\":\"<urn:uuid:8df0d08f-a2de-44cf-8bb2-4d0374020aa0>\",\"WARC-IP-Address\":\"23.5.129.95\",\"WARC-Target-URI\":\"https://de.mathworks.com/matlabcentral/cody/problems/43158-solve-system-of-equation/solutions/1466026\",\"WARC-Payload-Digest\":\"sha1:3D365FQI3VJ6W35NGSNJX4RQPTBBQ4CV\",\"WARC-Block-Digest\":\"sha1:IN5CQZV3QE47SYQRQJLA5RKVTVESSCQ3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250610919.33_warc_CC-MAIN-20200123131001-20200123160001-00314.warc.gz\"}"}