Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
f = '2(x + y)';
y = expandf(f);
validatestring(y,{'2 ( x + y )'})
assert(isequal(y,'2 ( x + y )'),'Not that kind of expansion ;)')
ans =
2 ( x + y )
|
2 | Pass |
f = '2(x + y + z)';
y = expandf(f);
validatestring(y,{'2 ( x + y + z )'})
assert(isequal(y,'2 ( x + y + z )'),'Not that kind of expansion ;)')
ans =
2 ( x + y + z )
|
2515 Solvers
154 Solvers
304 Solvers
81 Solvers
296 Solvers