Cody

Solution 813249

Submitted on 25 Jan 2016 by William
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
%% assert(isequal(vect('x*x'),'x.*x'))

y = x y = x.* y = x.*x

2   Pass
%% assert(isequal(vect('x^y'),'x.^y'))

y = x y = x.^ y = x.^y

3   Pass
%% assert(isequal(vect('x/z'),'x./z'))

y = x y = x./ y = x./z

4   Pass
%% assert(isequal(vect('(x*y)/z^w'),'(x.*y)./z.^w'))

y = ( y = (x y = (x.* y = (x.*y y = (x.*y) y = (x.*y)./ y = (x.*y)./z y = (x.*y)./z.^ y = (x.*y)./z.^w