For some reason, the sqrt function (or equivalent) in all programming languages has broken! You must find a workaround.


The input is 1 number.


The output is the square root of the input. You must be accurate to ±0.1.


You may not use any built in sqrt function (or equivalent). You can not use anything equivalent to ^1/2, either. You must achieve this in the smallest byte count possible.

  • \$\begingroup\$ Is the input always an integer? Is the input always a perfect square? \$\endgroup\$ – Calvin's Hobbies Nov 28 '15 at 21:33
  • 3
    \$\begingroup\$ Borderline dupe, but that one allows raising to the .5 power. \$\endgroup\$ – Doorknob Nov 28 '15 at 21:35
  • 1
    \$\begingroup\$ To what accuracy are you looking for? \$\endgroup\$ – Arcturus Nov 28 '15 at 21:38
  • \$\begingroup\$ @Calvin'sHobbies First question: Yes Second question: No \$\endgroup\$ – ev3commander Nov 28 '15 at 21:42
  • \$\begingroup\$ @Eridan: edited \$\endgroup\$ – ev3commander Nov 28 '15 at 21:42

Python, 34 33 31 bytes

while n*n<i:n+=.1

Not the answer you're looking for? Browse other questions tagged or ask your own question.