erName(取服务器名称) 都是全局变量,如@@ServerName(取服务器名称) ABS (求绝对值) ,SQRT(求平方根) 求绝对值) SQRT(求平方根) LEFT(求左子串) LEN(求串长度) LTRIM(删起始空格) LEFT(求左子串),LEN(求串长度),LTRIM(删起始空格...
基于116个网页-相关网页
对输入的整数求平方根,遍历所有小于或等于平方根的整数。
It loops through all of the integers that are less than or equal to the square root of the input integer.
第四件事情就是,我运用了抽象,我对怎么去求平方根没有提及。
And the fourth thing to notice is, I've used abstraction. I've said nothing about how I'm going to make square root.
内容包括:(1)用查表法进行除法、求平方根、求三角函数等复杂运算;
These techniques include: (1)Implementing division, square root, Logarithm operation and other complicate calculations by table-reading;
And the fourth thing to notice is, I've used abstraction. I've said nothing about how I'm going to make square root.
第四件事情就是,我运用了抽象,我对怎么去求平方根没有提及。
I first tested it on the square root of 4 and in one iteration it found 2.
我首先测了下求4的平方根4,它只迭代了一次并返回了2。
This was using something called a bisection method, which is related to something called binary search, which we'll see lots more of later, to find square roots.
你应该想起来,我们是以一个,叫做二分法求平方根的问题结束的,它运用了二分法去求一个数的平方根,二分法和我们将要花很多时间。
应用推荐