And we can calculate that with the formula that we used, which was just n minus l minus 1 equals the number of nodes.
这个我们可以用我们以前用过的那个公式来计算,也就是节点数等于n减去l减去1
And basically you solve biological problems using a computer and yeah.
主要是用计算机来解决生物问题。
But we know already from week zero that computers ultimately represent all information with numbers, and if they want to represent letters inside memory, well what do they do or what do they use?
但是自从上周我们已经知道,计算机最终是用数字来表示所有的,信息,如果它们要描绘,在内存中的字母,它们该怎么做,用什么方式呢?
We're typically going to use as basic steps the built-in primitives that a machine comes with.
我们要用计算机内置的原始体来,定义基本的步骤,换句话说。
That would be putting it in a real frame and-- wouldn't that be more sensible, because you would be specifying the contract in real terms rather than money terms?
那样的话就是一种实物框架理念-,那样不是更合理吗,因为在你拟定合约时,会更倾向于用实物而非货币来计算?
So now, then we're going to use what we're going to learn from step two in order to calculate III this part, what we could call step three.
现在我们要用从步骤II中,得知的东西来计算这个部分,我们可以叫它步骤。
In practice, most of the time we work with these two numbers, Ax and Ay.
在实际过程中,大多数时间我们就用 Ax 和 Ay 来计算
And, that gives you a number for the fluorine, minus 0.29. Now, if you do the same for the hydrogen, you'll come up with the same number.
然后给出F的数字,负的0。29,如果同样的用H来计算,你会得到一样的答案。
So it turns out that he could have picked anything to explain this, and hopefully done out the calculation, and we'll do this ourselves.
结果是他可能用任何事情,来解释这个说法,有希望完成这个计算,而且我们将自己做这件事。
You could use a calculator or any number of other tools but we'll get there.
我们可以用一个计算器或,其他的运算工具来计算那个结果。
Compute the angle the same way, just using the appropriate things.
用合适的计算来求,那么我们要说的概念是。
Computing square root. I'm going to capture it in a piece of code, I'm going to be able to refer to it by a name, and I'm going to suppress the details, meaning inside of that computation, you don't need to know what it does. You just need to know, if I give it the right kind of input, it'll give me back an input that satisfies the contract that I set up.
比如计算平方根,我会用一段代码来说明,我将给它命名,并且忽略细节,意思就是在这一段计算过程中,你不用知道它做了什么,你只需知道,如果我进行了正确的输入,它将会给我符合条件的输出。
The body of that function looks exactly like the computation up above, except I'm simply using those in place of the specific message I had before.
方法体内部看起来,很像上面的计算过程,除了我用这些来替代了,原来的那些特殊信息。
It uses the binomial distribution to calculate the probability of getting any specific number of accidents.
保险公司就可以用二项分布公式,来计算特定数目事故发生的概率
I can use that to return values, which I can then use elsewhere, which I did-- and if I just come back and highlight this-- inside of that computation.
我可以用它来返回值,然后我可以在别的地方使用这些返回值,正是我做的--如果我回过头来,在高亮一下这个--在这部分计算内部。
People use bin packing algorithms to figure out, for example, how to load up container ships.
人么通常用装箱算法来计算这个问题,比如说怎样装载货船。
I've added the ability to have more complex data structures here. But I dropped a hint in the first lecture about what you could computer with things. In fact if you think for a second about that list, you could ask what can I compute with just that set of constructs?
我添加了使用更复杂的数据结构的能力,但是我在第一节课给大家了了一个,关于你可以用什么来做计算的暗示,实际上如果你思考,这个列表一会儿的话,你会问我可以用?
I've captured it as a computation.
我把它到做计算来用。
So let's do a sample calculation now using this Rydberg formula, and we'll switch back to emission, and the reason that we'll do that is because it would be nice to actually approve what we just saw here and calculate the frequency of one of our lines in the wavelength of one of the lines we saw.
让我们用Rydberg公式,做一个例题,我们回到发射上,这么做是因为这样,可以用我们看到的波长,来验证我们计算的频率。
应用推荐