My original code was basically an implementation of manual square root. It started in the 120s, and I got it down to 84, a big tie for second. I couldn't find any more squeeze, and decided to look for a different solution. I think this is not only Cody simpler, but way easier to understand than anything else in the top ten.
Group
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Oops in code in comment - BigDecimal
My original code was basically an implementation of manual square root. It started in the 120s, and I got it down to 84, a big tie for second. I couldn't find any more squeeze, and decided to look for a different solution. I think this is not only Cody simpler, but way easier to understand than anything else in the top ten.