Cody

Solution 518901

Submitted on 31 Oct 2014 by James
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 = '41/3=13'; y_correct = 8; assert(isequal(base_exp(x),y_correct))

2   Pass
%% x = '23+44+14+32=223'; y_correct = 5; assert(isequal(base_exp(x),y_correct))

3   Pass
%% x = '41^(1/2)=5'; y_correct = 6; assert(isequal(base_exp(x),y_correct))

4   Pass
%% x = '302/20=12.1'; y_correct = 4; assert(isequal(base_exp(x),y_correct))

a = '302/20' '121/10'

5   Pass
%% x = '6*9=42'; y_correct = 13; assert(isequal(base_exp(x),y_correct))