Pergunta de entrevista da empresa Epic

Please write a function that accepts a floating number and returns its square-root. You may not use built-in square root function from your language. However, basic operators like addition, subtraction, multiplication are allowed. Please take into consideration the floating precision.

Respostas da entrevista

Sigiloso

7 de jun. de 2011

Newton's method: http://en.wikipedia.org/wiki/Newton's_method

2

Sigiloso

22 de mar. de 2012

http://www.dreamincode.net/code/snippet244.htm

1

Sigiloso

29 de ago. de 2009

Hint: please really take into consideration the floating point.