我们马上来测量时间,再取其比值,接着对比,看时间是否与高度的平方根,成正比。
So now we can measure these times and then we can take the ratio and then we can see that the time that it takes is proportional to the square root of the height.
,这是我们写的计算平方根的代码,计算完全全平方根的。
It's the piece of code we wrote for computing square roots, square roots of actually perfect squares.
记住,我提过当我们用二分法的时候,我们假设答案处于,上边界和下边界之间,0。25的平方根是多少?
Remember, I said when we do a bisection method, we're assuming the answer lies somewhere between Well, what is the square root of a quarter?
我们可以发现有效的z等于n的平凡,乘以电离能除以里德堡常数,这些所有再开方,所以等于n乘以,除以RH整体的平方根。
So, if we just rearrange this equation, what we find is that z effective is equal to n squared times the ionization energy, IE all over the Rydberg constant and the square root of this.
假设我们希望得到这样一个查找表:它返回5到20之间各个数字的平方根。
Let's say you want a lookup table that will return square roots of Numbers between 5 and 20. A simple program can be written to generate such a table like this.
你应该想起来,我们是以一个,叫做二分法求平方根的问题结束的,它运用了二分法去求一个数的平方根,二分法和我们将要花很多时间。
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.
你应该想起来,我们是以一个,叫做二分法求平方根的问题结束的,它运用了二分法去求一个数的平方根,二分法和我们将要花很多时间。
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.
应用推荐