Nice problem to learn the use of java inside Matlab.
BigInteger of doubles above 128 does odd things. BigInteger(num2str(v_dbl)) will work up to 2^53. I did not go into BigInteger limitations.
Usage of BigInteger will cause headaches. The Challenge is BigDecimal.
Given an unsigned integer x, find the largest y by rearranging the bits in x
796 Solvers
Increment a number, given its digits
563 Solvers
6644 Solvers
Calculate the derivative of a polynomial
173 Solvers
2474 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!