Find the base b logarithm of the input decimal number x. Express the output as a decimal number. The first argument is the number x, and the second argument is the base b.
Examples
logb(1024,2) ---> 10
logb(25,5) ---> 2
logb(100000,10) ---> 5
what the hell?why my code can work on my computer?while it report error here
It looks like your solution uses the symbolic math toolbox. I am assuming that that is not available to Cody solutions.
Project Euler: Problem 6, Natural numbers, squares and sums.
782 Solvers
Compute a dot product of two vectors x and y
645 Solvers
369 Solvers
Is this triangle right-angled?
1921 Solvers
241 Solvers