So, it's a trivial matter, by looking at what is the weight and how far does it drop, to say OK, how much work is done by the paddle wheel.
好,让我们看看重物的质量,以及它下落的距离,就知道桨轮做了多少功。
and you say, "ok, this is the reason, and this is the result. This is why I feel the way I feel."
你可以说,“好吧,这就是原因,这就是结果。这就是我有这种感觉的原因。”
Well I have to go to the zero-th element, and say OK, gee, to get to the next element, I've got to jump this here. And to get to the next element, I've got to jump to here, and to get to the next element, I've got to jump to here, until I get there.
再回到第0个元素,好的,然后找下一个元素,跳转到这里,然后再下一个元素,跳到了这里,然后再下一个元素,直到我找到那个元素,这样,我有方法来保存变长的元素。
And then we can say, OK, if we have many constituents, what if we have a mixture of stuff?
然后我们可以问,如果我们有很多组分,那么我们把它们混合后会是怎么样?
If you say today, "Ok, is all the good stuff in the days gone by?"
如果你今天说,“过去的日子里都是美好的吗?“
OK, let's choose something that has, say, a hundred times less than that.
好的,让我们来选出,比那能量小100倍的电子。
Now for many of you,when you look at this you may say, "Well,Ok,yes,change is possible.
你们可能会说,“好吧,改变是有可能的。
Just say, OK we have eight real intelligent people here.
换言之,怎么样安排这八个聪明人。
If you can say that maybe in a minute or so. -OK.
最好可以一分钟之内说完,-好的。
Ok, let's say that you have a really good relationship with your mom and you rarely ever fight.
我们假设你跟你母亲关系特别好,很少有口角。
Ok, different neighborhoods. Well, as far as the yoga community in New York, I would say that it tends to be very young.
好吧,分社区吧。就纽约的瑜伽社区而言,我觉得它还很年轻。
you say, "It's ok, I will make some tea."
你可以说,“没事的,我泡点茶。”
When we tell the stories which you won't get yourselves to know next time, when we tell the stories next time, ?" and to say "OK, who you wanna to be tortured?"
等我们下次谈到,你所不了解的故事时,等下次我们谈论其他故事时,我会问,“你们希望我折磨哪个人“
OK, in fact if we look at this, if I say, print of p, it prints it out in that form.
好,实际上如果,我们来看看这个,如果我输入,p的显示。
And what does that say? It says, let's assume I want to do k searches of a list. OK.
如果我们假定要在列表中做k次搜索,在线性的情况下,假定是一个未排序的情况。
So I can in a very straightforward way say, OK, well, here is my Helmholtz free energy.
所以我可以很直接的说,这就是我的亥姆赫兹自由能。
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?
我们能够说的是,如果我们有一份混合物,自由能怎么变化?
OK. The other piece I want to say about variable names is, once I have that choice of variable name, I can use it, but in fact there are a few things that I can't use in terms of variable names.
关于变量名字我还想说的,另外一点就是,一旦我对变量的名称可以选择,我可以用自己的方式命名,但是,有一些词汇是,不能用来命名变量的。
And so we can then say, OK, let's do this second expansion.
这么说,好,让我们再做第二个实验。
OK. The other thing I want to say here, is that this style of program we just wrote is actually a very common one. And we're going to give it a nice little name, often referred to as exhaustive enumeration.
好,另外一件我想说的事情是,刚才我们写的代码的风格,是非常普通的,我们会给这个风格一个名字,通常是被称为详尽的列举。
OK, for example, I might say point p1 is that list, x is 1, y is 2.
和y坐标的数组是很简单的1,那么,例如,我可能会说点。
And it's primarily-- I shouldn't say primarily, it is an interpreted language. OK?
它基本上-我不该说基本上的,它就是一种解释语言,对不对?
Ok, what's the geometry say?
剩下的部分都在那儿?
Let's bind z eh let's bind z to the-- f if I could type it would help-- say, f of 3. OK?
让我们给z赋值--如果我能打字就好了-,比方说?
OK. A whole lot of work to basically say again, order b is linear.
这个方法是随b线性增长的,但是这方法也不错。
OK. What does that say? I'm going to change MinIndex min index to also point there n value is 8, j starts off here, and I say, OK, is the thing I'm looking at here smaller than that? Yes.
好的,这意味着什么?,我打算交换,让它也指向那里,MinVal是8,j从这里开始,我要找的值比这个小么?是的。
y are these the same?
坐标赋值为4,OK,,now,I,want,to,say,好,现在我想看看?
And then maybe I raise the temperature to whatever, room temperature, maybe 20 degrees hotter than room temperature. And I again say OK, now how much heat do I need to raise this thing's temperature by 1 degree?
我可能把温度升到,比如室温,或者比室温高20度之类,然后我再说,好,现在要把这个东西的温度,升高一度需要多少热量?
And in general, what I would say is, when in doubt, use parens. OK.
因此通常上,我会告诉大家的是,当有疑问的时候,请用括号,好。
应用推荐