对输入的整数求平方根,遍历所有小于或等于平方根的整数。
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;
则目的是求平方根;但是仅当字段的显示类型是Number(如图8所示)时才能工作。
Then the intent is to take the square root; however, this works only if the display type of the field is Number as shown in figure 8.
你应该想起来,我们是以一个,叫做二分法求平方根的问题结束的,它运用了二分法去求一个数的平方根,二分法和我们将要花很多时间。
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.
当特征根难以求出而特征根的对称式易求时,半正定矩阵的算术平方根可直接由矩阵的本身的性质来表示。
On the other hand, square roots of semi-positive matrices can be expressed by the symmetric expression of eigenvalues, if the eigenvalues of semi-matrices are difficult to compute.
最后还给出了求友循环矩阵主平方根矩阵的算法。
At last, an algorithm for computing the principal square-rooting matrix is given.
好,我试试求2的平方根,我当然不希望得到一个完全准确的答案了,但是我得到了一个近似值,试试将这个数平方一下,你会发现结果和2相当接近。
All right. I tried it on 2, I surely didn't expect a precise and exact answer to that but I got something, and if you square this, you'll find the answer kept pretty darn close to 2.
好,我试试求2的平方根,我当然不希望得到一个完全准确的答案了,但是我得到了一个近似值,试试将这个数平方一下,你会发现结果和2相当接近。
All right. I tried it on 2, I surely didn't expect a precise and exact answer to that but I got something, and if you square this, you'll find the answer kept pretty darn close to 2.
应用推荐