OK, so w, first of all, work is being done to the system on the left hand side here.
好的,首先,我们通过左边对系统做功。
All right. OK, looks like we got the majority, which is a good start, but we having discrepancy on what people are thinking.
好的,OK,看来大部分人都做对了,这是个不错的开始,但还有一部分人的答案有分歧。
OK, so all I do is I take into account that I've got all the positive charge, whatever it is, it's a nucleus.
我做的全部是考虑,我得到所有的正电荷,无论是什么,都是一个核。
So first of all, I've got to be careful about the end test. But the second thing is, OK, if it stops whenever this is less than two, am I convinced that this will always halt?
小心最后一次比较,其次,如果少于两个元素程序停止了,我们能确信这总是应该终止的么?,答案是肯定的,因为我在做什么?
If you say today, "Ok, is all the good stuff in the days gone by?"
如果你今天说,“过去的日子里都是美好的吗?“
Convention, OK, this negative sign is just a pure convention. You just got to use it all the time. If you use an old textbook, written when I was taking thermodynamics, they have the opposite convention, and it's very confusing. But now we've all agreed on this convention, and work is going to be with the negative sign here.
系统对外界做功的符号为负,这就是我们,在本课中的规定,纯粹出于统一符号的需要,有些教科书中,可能会使用相反的符号规定,注意不要混淆了,这门课上,我们将一直使用。
OK. All right, let me show you one other tool that I want to use. Which is, I've written that piece of code, I ought to check it. Well, I could just run it, but another useful thing to do is, I'm, especially as I want to debug these things, is to simulate that code.
好,那么,让我给大家讲下,我想用的另外一个工具吧,也就是,我已经写好了这一块代码,我应该去检查检查,那么我可以去运行它,但是特别是当我想要调试代码的时候。
OK. If b is even, then a to the b is the same as a squared all to the b over 2.
就等于a的平方的二分之b次方,好,就是把二挪到外面来了。
First of all, two parameters. It's OK. All it says is, when I call this, I need to pass in two parameters for this to work. All right? Now, if I want to use that, I'm going to use a second piece of code here, called Barnyard. I'm going Barnyard to read in a couple of values, convert them into integers, and then I'm going to use solve to get a solution out.
注意我得到了什么,第一,两个参数,它的意思就是我调用这个函数,我得给它输入两个参数,明白了吗?,现在如果我要使用它我得用,这里的第二段代码,也叫,我将读入一组值,将它们转化为整型,然后我会用solve得到一个解决方案。
应用推荐