Cody

Problem 553. How to multiply?

Solution 3637523

Submitted on 12 Nov 2020
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   Fail
X='170000000000000000000000000000'; Y='190000000000000000000000000000'; Z='32300000000000000000000000000000000000000000000000000000000'; assert(isequal(Z,ylpitlum(X,Y)))

Undefined function 'bigDecimal' for input arguments of type 'char'. Error in ylpitlum (line 3) s1=bigDecimal(X) Error in Test1 (line 4) assert(isequal(Z,ylpitlum(X,Y)))

2   Fail
X='7657534422342987897979879745232234'; Y='9878765654343431233130980808776767'; Z='75646988048394475543709477144832189651639589891288011407029878707478'; assert(isequal(Z,ylpitlum(X,Y)))

Undefined function 'bigDecimal' for input arguments of type 'char'. Error in ylpitlum (line 3) s1=bigDecimal(X) Error in Test2 (line 4) assert(isequal(Z,ylpitlum(X,Y)))

Suggested Problems

More from this Author100

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!