Cody

# Problem 1210. Two-output anonymous function?

Solution 218428

Submitted on 18 Mar 2013 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 = [1 2 3]; a_correct = x; b_correct = x.^2; f=f2f(); [a b]=f(x); assert(isequal(a,a_correct)&&isequal(b,b_correct))

2   Pass
%% x = [-1 2 -3 5 -1]; a_correct = x; b_correct = x.^2; f=f2f(); [a b]=f(x); assert(isequal(a,a_correct)&&isequal(b,b_correct))
{"ft_lang_label":"__label__en","ft_lang_prob":0.57121015,"math_prob":0.99622816,"size":480,"snap":"2019-51-2020-05","text_gpt3_token_len":168,"char_repetition_ratio":0.18487395,"word_repetition_ratio":0.17948718,"special_character_ratio":0.42291668,"punctuation_ratio":0.17272727,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9958457,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-12-12T01:41:08Z\",\"WARC-Record-ID\":\"<urn:uuid:1dd6db3f-0ccc-4d01-bf69-b01b9ab16c5f>\",\"Content-Length\":\"72886\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c5da2c33-47e8-46c9-b585-d745f8033ebd>\",\"WARC-Concurrent-To\":\"<urn:uuid:299f55f2-5854-4128-b6c0-aa96e56337f1>\",\"WARC-IP-Address\":\"104.110.193.39\",\"WARC-Target-URI\":\"https://de.mathworks.com/matlabcentral/cody/problems/1210-two-output-anonymous-function/solutions/218428\",\"WARC-Payload-Digest\":\"sha1:56SZVL5LVWBGIDQ6MJEHDW4U4LLHRHX7\",\"WARC-Block-Digest\":\"sha1:DOD53LGOELQIISFEHRINK2QNKKYIMHLB\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-51/CC-MAIN-2019-51_segments_1575540534443.68_warc_CC-MAIN-20191212000437-20191212024437-00252.warc.gz\"}"}