Problem 47123. Determine the Base of the Equation Provided
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
Rafael S.T. Vieira
on 30 Oct 2020
Similar problem: https://www.mathworks.com/matlabcentral/cody/problems/2643
Dyuman Joshi
on 10 Apr 2022
This is an extension or rather expansion of problem #2643
Solution Comments
Show commentsProblem Recent Solvers4
Suggested Problems
-
Remove all the words that end with "ain"
2176 Solvers
-
Circular Primes (based on Project Euler, problem 35)
469 Solvers
-
178 Solvers
-
23 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
620 Solvers
More from this Author54
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!