# Eikonal Blog

## 2010.01.14

Filed under: evolution — sandokan65 @ 16:31

### IdeOne

Filed under: dev — Tags: — sandokan65 @ 16:24

A simple web page that tests code snippets in various programming languages:
http://ideone.com/

Filed under: privacy — Tags: , — sandokan65 @ 14:02

 … Hand a calculator to a friend. Ask him to enter a two-digit number. Have him multiply his chosen number by his number, then multiply it again. Let’s say he chooses number 57. ``` 57 X 57 X 57 = 185, 193 ``` To extract the cube root of this number we must first memorize the cube roots for the single digits 1 thru 9: ```1 = 1 2 = 8 3 = 27 4 = 64 5 = 125 6 = 216 7 = 343 8 = 512 9 = 729 ``` Notice that : 2 cubed ends in 8 and 8 cubed ends in 2, 3 cubed ends in 7 and 7 cubed ends in 3, 4 cubed ends in 4, 5 cubed ends in 5, 6 cubed ends in 6, 9 cubed ends in 9. To derive the cube root of our number (185, 193), we divide it into two sections at the “comma”. The left section is 185 and the right section is 193. Now, we search for the first single digit cube that is NOT larger than 185. In this case, the number is 125, the cube of 5. So, 5 is the first part of our answer. Now we examine the right part of our number (193). Since this part ends in a 3, we refer to the single digit, which cubed, ends in 3. It is a 7. This becomes the right part of our solution. So, the answer is 57. This feat looks like it requires a great deal of mental ability, but it can be easily learned by anyone in a short time.