Find out base of the equation provided as input (true if within 1e-3).
For example:
eqn='41/3=13'
base =8;%eqn is true when the base of operation is base 8
Another example:
eqn='23+44+14+32=223'
base =5;
Given an input string with an arithmetic equation, return the base making the equation valid (within 1e-3).
Solution Stats
Problem Comments
2 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers5
Suggested Problems
-
Find state names that end with the letter A
1198 Solvers
-
Choose the best fitting dominoes
247 Solvers
-
Find the largest value in the 3D matrix
1677 Solvers
-
Unique values without using UNIQUE function
451 Solvers
-
poll: would you like the regexp (?@cmd) functionality to be banned in Cody?
181 Solvers
More from this Author63
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Similar problem: https://www.mathworks.com/matlabcentral/cody/problems/2643
This is an extension or rather expansion of problem #2643