OK, important -- if you are part of this group here think about it and make sure you understand that.
好的,这很重要,如果刚才你选了可逆过程,请好好想想并且保证已经理解了这个问题。
Because if you tell yourself that you are going to be ok, you are going to be fine.
因为如果你告诉自己一切都会好的,那么一切就会好起来。
OK. So if we have variables, one of the questions we can ask is, what's the type of the variable.
好,如果我们有了一个变量,我们要问的问题之一就是,这个变量的类型是什么?
OK, clearly we'd be much better off if we had some systematic quantitative way to tell whether something would happen spontaneously.
好,如果我们有一些系统定量的方法来判断,一个过程是否会自发进行,那就会更好了。
So, if you want to attack urban air quality, this is probably moving in the wrong direction, OK?
所以如果你想攻击都市的空气质量,这可能是一个错误的方向,对吗?
If you're wondering what's OK or what's not OK, it's very clearly written out in this handout, so make sure you read through it, because it is your responsibility to make sure that your calculator does not have anything extra programmed in it.
如果你不清楚什么可以什么不可以,讲义上写得很清楚,所以请大家务必看完它,因为你有义务保证,在自己的计算器里,没有编上额外的程序。
B "Ok, so I don't care if I don't get a B in the course.
我不在乎成绩是不是。
if you really have some trouble with DVD then Ok, put it in and if I'm not back start it anyhow and I'll try very hard to be here in the meantime,could you make out the card
如果有什么问题的话,如果我没及时赶过来的话,下次把它先放一下,无论如何把它放了,我下次也尽量赶过来,啊,你看一下这个卡
Ok, double line. If there are no questions I'm going to make a dramatic change in topic.
好的,这是重点,如果没什么问题,我要讲下面的内容。
I mean we can, we can sort of understand why OK, the total energy, if we measure it, we measure a process which is not reversible.
例如我们易于理解为什么,当试图测量一个不可逆系统的总能量,给出的或许。
And in fact if I go off and run this, OK, what I was printing here was s 1 dot length, and that's -- What is it doing?
他们就是一些有结构的实例,实际上如果我去运行下这个,好,我这里输入的?
OK. Having done this now, I can simply go ahead and run this, and in fact if I go up here to run, you'll see I've got both an option to check the module, though in this case I'm just going to run it.
好,讲完了这些,我可以去执行程序了,实际上如果我在这里运行,你们会看到我同样得到了,一个可以同时检查模块的选项,虽然在这个例子中我就是直接去运行程序了。
And if I go look at the polar form of this, OK, good, looks right, right?
现在它有一个不同的坐标,以及跟原来相同的角度?
OK. What happens if you actually have something that's both syntactically correct, and appears to have correct static semantics, and you run it?
好,当你的代码语法,没错误,并且也有正确的静态语义,你去运行它的时候会发生什么呢?
OK, now, if I actually do this, and I'm going to show you the example, I just, what did I type over there, I got p was a c point.
传入了其他的参数,好,现在,如果我,实际上要做这个的话,我要给大家看个例子。
OK. If last minus first is greater than or equal to 2-- sorry, less than 2, then either look at this thing or look at that thing.
大于等于儿,抱歉,是小于二,看看这里或者那里,这就是我说的要特别小心的地方。
OK. So last time around, we talked about, or introduced if you like, iterative programs.
好,上节课的最后时候,我们讲过了,或者是介绍过了。
What that's going to allow us to do is, if we say, OK I have a mixture of stuff, how does the free energy change?
我们能够说的是,如果我们有一份混合物,自由能怎么变化?
I don't think either of us are thrilled with the text, it's the best we've probably found for Python, it's OK. If you need it, it's there.
我不认为我们俩对于这个课本很满意,这是我们能找到的,最好的版本了,还不错,如果你需要它,就在网站上。
OK. So if I look at this code, first of all I'm calling search, it just has one call, so looks like search is constant, except I don't know what happens inside of b search. So I've got to look at b search.
首先调用一下搜索,就一步调用,看起来搜索是固定的,除非我不知道二分搜索的原理,那我们来看看二分搜索吧,所以让我们看看,第一行打印出来的内容。
So if delta v is negative, in this case delta v is negative, OK, delta v is negative, pressure is a positive number, negative times negative is positive, work is greater than zero.
也就是当活塞,压缩气体的时候,做的功是正的,按照这一规定,我们需要在这里,加上一个负号,这是习惯规定。
If it is, OK. Set the answer to true.
这意味着当下一次经过这个循环的时候。
OK. If b is even, then a to the b is the same as a squared all to the b over 2.
就等于a的平方的二分之b次方,好,就是把二挪到外面来了。
OK? So you can see that, it's just walking through it, and in fact if I look at a couple of another-- another couple of examples, it's been a long day, again, you can see that property.
恩,其实你能看到,他就是遍历列表,你要有空的话,可以再看很多很多其他的例子,你能够看到这个属性。
OK, good luck on your tests, and remember the review session if you care.
好的,祝你的测验好运,并记住复习如果你在乎的话。
All right? If I'm gambling, I'm saying, gee, if I'm really lucky, it'll be only on this side, and I've got a little bit of work to do, but if I'm unlucky, I'm scrawed, the past pluperfect of screwed, OK., or a Boston fish.
如果我够幸运的话,目标数就会在这边的,这会大大减少我的工作量,但如果不幸运呢?我就完蛋了,我就得再从剩下的这么大的数组里找了,这很痛苦,因此选中位数是正确答案。
OK. At this point, if we stop, you'll think all algorithms are linear. This is really boring.
可能我们就认为所有的解决这个问题的,算法都是线性增长的了,真很没意思,但是他们真不是对不对?
And the code over here says, OK gee, if I'm in the base case do something.
如果我属于基础事件就进行一些操作,而我不是,所以往下看这儿。
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?
小心最后一次比较,其次,如果少于两个元素程序停止了,我们能确信这总是应该终止的么?,答案是肯定的,因为我在做什么?
OK.And if I substitute it again, This is going by a little fast.
如果继续下去就是,这有点儿快。
应用推荐