在C ++中实现double sqrt(double x) [英] Implement double sqrt(double x) in C++

查看:486
本文介绍了在C ++中实现double sqrt(double x)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C ++中实现 double sqrt(double x)而不使用std库。

Implement double sqrt(double x) in C++ without using std library.

问题我在这里看到。 http://www.glassdoor.com /Interview/Implement-double-sqrt-double-x-in-C-QTN_87210.htm
对此有其他好的建议吗?

This is a facebook interview question I saw here. http://www.glassdoor.com/Interview/Implement-double-sqrt-double-x-in-C-QTN_87210.htm Any other good idea about this?...

!!! Edited。!!!(without using std library。)

!!!Edited.!!!(without using std library.)

推荐答案

查看此处。这篇CodeProject文章比较了14种不同的计算平方根的方法。

Look here. This CodeProject article compares 14 different methods for computing the square root.

这篇关于在C ++中实现double sqrt(double x)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆