-3
For some reason, the sqrt
function (or equivalent) in all programming languages has broken! You must find a workaround.
Input
The input is 1 number.
Output
The output is the square root of the input. You must be accurate to ±0.1.
Limitations
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.
Is the input always an integer? Is the input always a perfect square? – Calvin's Hobbies – 2015-11-28T21:33:59.587
3Borderline dupe, but that one allows raising to the .5 power. – Doorknob – 2015-11-28T21:35:38.927
1To what accuracy are you looking for? – Arcturus – 2015-11-28T21:38:49.867
@Calvin'sHobbies First question: Yes Second question: No – ev3commander – 2015-11-28T21:42:25.840
@Eridan: edited – ev3commander – 2015-11-28T21:42:32.793
"Anything similar" is way too vague. – xnor – 2015-11-28T21:47:33.260
.@xnor: Edited. – ev3commander – 2015-11-28T21:48:58.230
This question was closed as a duplicate of this which was closed as a duplicate of this which was closed as unclear.
– ericw31415 – 2016-05-14T09:06:55.047