Cody

# Problem 2376. Find the Nth Root of a Given Number

Solution 1112003

Submitted on 28 Jan 2017 by paolo77
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 = 4096;n=4; y_correct = 8; assert(isequal(nth_root(x,n),y_correct))

y = 8

2   Pass
x = 256;n=4; y_correct = 4; assert(isequal(nth_root(x,n),y_correct))

y = 4

### 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.55279434,"math_prob":0.9351822,"size":478,"snap":"2020-45-2020-50","text_gpt3_token_len":140,"char_repetition_ratio":0.1392405,"word_repetition_ratio":0.0,"special_character_ratio":0.31799164,"punctuation_ratio":0.12903225,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99014527,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-12-03T15:22:50Z\",\"WARC-Record-ID\":\"<urn:uuid:797fb7a7-ce8b-48d0-92f4-fa8a68a23aec>\",\"Content-Length\":\"79001\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c0bcf792-5bca-40fe-9aa6-17e61cc2412c>\",\"WARC-Concurrent-To\":\"<urn:uuid:45d6c97c-2073-4621-8cbe-c719b201b45b>\",\"WARC-IP-Address\":\"23.223.252.57\",\"WARC-Target-URI\":\"https://uk.mathworks.com/matlabcentral/cody/problems/2376-find-the-nth-root-of-a-given-number/solutions/1112003\",\"WARC-Payload-Digest\":\"sha1:JZMJDF7EYWUTB4SUHPOORSUPCEV3P2ZE\",\"WARC-Block-Digest\":\"sha1:LRZY3HY6MZYA7JZZEWGN3TJVXQHGP7BC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-50/CC-MAIN-2020-50_segments_1606141727782.88_warc_CC-MAIN-20201203124807-20201203154807-00522.warc.gz\"}"}