MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayCorrect

14Size

Leading solution size is 8.
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, log in.

Test

Code Input and Output

1

Pass

%% x = 4096;n=4; y_correct = 8; assert(isequal(nth_root(x,n),y_correct))

ans = 8