We'll do a little catalog of them: "Of Man's First Disobedience and the Fruit" - that was line one, of course.
我们来数一下:,“关于人类最初违反天神命令偷尝禁树的果子“,-这是第一句,当然。
And there are only two ways to move the ball in football and to gain yards.
而且在美式足球比赛中,只有两种方式去推进球来获得码数。
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
So the temperature is intensive, and you can make intensive properties out of the extensive properties by dividing by the numberof moles in the system.
所以温度是强度量,你可以通过,除以系统中物质的摩尔数,来从广延量中导出强度量。
We started off talking about binary search, and I suggested that this was a log algorithm which it is, which is really kind of nice.
我告诉了你们这是一个对,数级的算法,这是很棒的,我们来一起看看这个算法到底做了什么。
What can we say about those choices, those strategies 67 and above, bigger than 67, 68 and above?
那些选择大于67的数的同学,如选68及以上的人怎么来评价呢
As far as I know, he doesn't publish he's not in the newspapers, but he's gotten the ear of the Treasury Secretary They spent many weekends together figuring out what should be done about the system and they wrote up a proposal.
据我所知,他从没出过书,也没有上过新闻,但他却有当财政部长的潜质,他花了数周的时间来搞清楚,对于现在的美国金融体系,该怎么改革然后书写成书。
So what we want to do now is to begin to think about counting measures, and we're going to do this by staying with this piece of Louis Armstrong here, and we need to be able to count measures so that we can figure out the syntax of music.
现在我们想做的,是大家开始想一下怎么数小节,我们通过,路易斯·阿姆斯特朗的这段乐曲,来做这个活动,我们需要能够数好小节才能弄清楚,音乐的句法
So what data type can we use to actually get more bits of precision than an int?
所以我们能用什么数据类型来表示,比int类型更多位数的数呢?
If it is, in fact, positive, then we're going to go in here, but now notice what we're doing here.
如果这个数实际上是个正数,那么我们就到,这里面来,但是请注意我们在这做了什么。
So if we're talking about the fourth excited state, and we talk instead about principle quantum numbers, what principle quantum number corresponds to the fourth excited state of a hydrogen atom.
如果我们说的是,第四激发态,我们用,主量子数来描述,哪个主量子数对应了,氢原子的第四激发态?
And that then let's me get to, basically, base this code. Having done that, height I simply call base with get float, I call height with get float, and do the rest of the work.
现在让我们看看这段代码,其实已经写好了,我简单的调用下,用来得到一个浮点数,再调用下,来得到另外一个浮点数,然后做剩下的工作就可以了。
Claire Elise is going to get her own vote plus 1, 2, 3, 4, 5, 6, 7, 8, 8 votes and Beatrice is getting 1, 2, 3, 4, 5, 6, 7, how did I end up with eight, I thought I had an odd number. 1, 2, 3, 4, 5, 6, 7 there must have been an odd number before.
克莱尔·伊莉斯将获得自己的选票加上,12345678 8张选票,而比阿特丽斯获得1234567,我怎么数出8个来的,我想应该是个奇数,1234567,之前也应该是个奇数
All right. So let's look at some of these wave functions and make sure that we know how to name all of them in terms of orbitals and not just in terms of their numbers.
好,让我们来看一下,这些波函数,并确定我们都知道,怎么用轨道,而不仅是量子数来命名它们,一旦我们可以命名它们。
I'm given an integer that's a perfect square, and I want to write a little piece of code that's going to find the square root of it. All right so I'm cheating a little, I know it's a perfect square, somebody's given it to me, we'll come back in a second to generalizing it, so what would the steps be that I'd use to walk through it?
完美平方数的整数,我想写一段代码来求这个数的平方根,好,我这儿有点儿作弊了,我知道这是一个完美的平方数了,他们给我的,我们后面会讲怎么产生这个数的,那么我想解决这个问题,需要什么步骤呢?
t In the b even case, again I'm going to let t of b be the number of steps I want to go through.
如果b为偶数,那么我还是要用,来代表解决这个问题需要的步骤数。
And he quite correctly, because he's more senior than I am, more experienced than I am, said it's actually a good thing.
你可以用加法来加浮点数,他很明显是正确的,因为他比我年长些,比我更有经验些。
The reason there are three quantum numbers is we're describing an orbital in three dimensions, so it makes sense that we would need to describe in terms of three different quantum numbers.
我们需要,3个量子数的原因,是因为我们描述的是一个,三维的轨道,所以我们需要,3个不同的量子数,来描述它。
So the strategy choices, we're not going to do it in hours, let's just normalize and regard these choices as living in 0 to 4, and you can choose any number of hours between 0 and 4.
我们用小时数来表示策略吧,用0到4的数字来标记这些策略,你可以从0到4中任选工作的小时数
You can run into issues of things like overflow, underflow, with floating point numbers and when you see a whole bunches of ones, it's particularly a good time to be suspicious.
来看看哪儿会出问题,你可能会碰到浮点数中的溢出和下溢问题,当你碰到一系列这种问题后,可能就会适时的开始怀疑结果的正确性。
All right. What does this have to do with my divisor example? This says I can make tuples, but imagine now going back to my divisor example and I want to gather up the elements as I go along. I ought to be able to do that by in fact just adding the pieces in.
这意味着我可以创建元组了,但是想像下回到我们的除数的例子,在处理过程中我们想把目标数的除数,收集起来,我应该能够通过把这些数,一个一个加进来来实现这个目的,我正是要去这么做,也就是。
We know we need to divide by 266, 266 but what we need you to help us with is to figure out this top number here and see how many particles are going to backscatter. So if the TAs can come up and quickly hand out 1 particle to everyone.
知道背散射的概率就可以了,我们知道要除以,但还需要你们来搞清楚,分子上的数是多少,有多少个发生背散射的粒子,助教们请过来,把这些球分给同学们。
We have 266 ping-pong balls, and we need someone, hopefully you, to be some radioactive material that are going to be emitting these ping-pong balls. And when the time comes, in just a minute, I'll ask the TAs to come down and hand these out very quickly to you, so we can do this experiment.
你们有些人那天,看到我在办公室数乒乓球,我们需要几个人,希望是你,来作为放射材料,放射这些乒乓球,等会我会让助教,把这些球发给你们。
And that's just to take 1 the principle quantum number l and subtract it by 1, and then also subtract from that your l quantum number.
主量子数,减去,再减去,量子数,你们可以对1s轨道来验证一下。
I have to change the prototype of this function to say that swap no longer takes an int per se or another int per se, but rather it takes two pointers, two ints, and in fact, it's on the very last page if you're still flipping.
我改变了这个函数的原型,来说明swap不再携带那两个int数本身,而是携带两个指针,两个整型数指针,实际上,它是在最后那页上。
And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.
因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。
So we'll talk a bit more about this idea of functions today, but, get int, again, can think of it as a black box, whose purpose in life is to prompt the human for input and pester the human if he or she doesn't actually give it int, but then once it has that, has entered it from the user, it's quote unquote, returns it to you.
所以我们进今天将多讨论点这个函数的概念,但是,GetInt,我们可以把它当做一个黑盒子,它的唯一目的是提示人们来输入,并且如果他或她没有,给它int数,则会纠缠用户,但是一旦它得到了,用户输入的int数,对输入进行引用,返回给你。
So, if you look at all of these, we have full octets for all of them, and if we count up all of the valence electrons, it's going to be equal to our number 26 here.
那么,如果大家看看所有的这些,它们的“八隅体“都填满了,而如果我们来数一数价电子的总个数,它应该就等于我们这里的二十六。
ReadFloat We'll look at it in a second. Let me sort of set the stage up for this -- suppose I want to input -- I'm sorry I want you as a user to input a floating point number.
名字叫,我们来看一会,我先来设置下情景-,假设我想输入,抱歉,我希望你们作为用户来输入一个浮点数。
We knew this was trying to do squaring, so intellectually we know we can square -4, it ought to be 16, but what happens here?
我们知道程序是用来求平方数的,那么按理说我们可以来求-4的平方,也就是16,但是程序结果是怎么样的呢?
应用推荐