Cody

# Problem 42258. Calculate square and cube of number

Solution 1876554

Submitted on 17 Jul 2019 by Daniel Yago
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 = 1; assert(isequal(cube(x),y))

2   Pass
x = 2; y = 8; assert(isequal(cube(x),y))
{"ft_lang_label":"__label__en","ft_lang_prob":0.5235712,"math_prob":0.98803663,"size":252,"snap":"2019-51-2020-05","text_gpt3_token_len":90,"char_repetition_ratio":0.16129032,"word_repetition_ratio":0.0,"special_character_ratio":0.4047619,"punctuation_ratio":0.14285715,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9853362,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-01-19T05:23:43Z\",\"WARC-Record-ID\":\"<urn:uuid:e39d140b-25f8-4e17-bd02-d363e81735e4>\",\"Content-Length\":\"72444\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ce85f2ac-c2c4-4090-8721-733c395b5fb5>\",\"WARC-Concurrent-To\":\"<urn:uuid:f83a9b62-7944-4947-97e9-75eeebba8a6d>\",\"WARC-IP-Address\":\"23.32.68.178\",\"WARC-Target-URI\":\"https://de.mathworks.com/matlabcentral/cody/problems/42258-calculate-square-and-cube-of-number/solutions/1876554\",\"WARC-Payload-Digest\":\"sha1:OYHEASBFURHWJRHYIRPWVRBOSIMCXYIM\",\"WARC-Block-Digest\":\"sha1:QN6LI6C3ER5XI6T6RUMY5S53LG5FYBXE\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-05/CC-MAIN-2020-05_segments_1579250594209.12_warc_CC-MAIN-20200119035851-20200119063851-00519.warc.gz\"}"}