So if you had some number back in grade school like 123, well, why do we express this as 123?
在小学,像123这样的数,为什么我们要表达成123这样的呢?
Now, to get to the number of neutrons, what we do is go up here to the upper left.
现在,看看中子数,我们要做的,是看到这左上方。
And as you might expect, I'm going to then try and see if I can convert that into a float.
正如你希望的我要试着把他们转化为浮点数,等一等。
So we have a total of 2, 4, 6, 8, 10 valence electrons, so I'll make sure I count to 10 as we fill up our molecular orbitals here.
我们一共有2,4,6,8,10个价电子,所以我一边填一边要确认,我数到10。
Good. To rule out the second slice, I need to be rational myself, and I need to know that others are rational.
要剔除46到67的数,不仅首先自己要是理性的,而且也要知道别人也是理性的
I'd like an integer please, a colon, and a space just for aesthetic reasons.
我想要一个整型数,一个冒号,和一个,使其更美观的空格。
So to do that we've got to be able to count measures.
为了能作到这一点,我们先要会数小节
But we might then wonder, for every person who gets less than the average amount of life-- suppose we take the median, take the amount of life that's exactly, 50 percent of the people get more, 50 percent of the people get less.
但是接着我们可能会想,对于所有活得比平均寿命要短的人-,假设我们取中间数,相对于平均寿命,刚好五成的人活得更长,五成的人活得更短。
On the other hand, if the value I'm looking for here- sorry, the value I'm looking for is smaller than the value I see here, I just need to look here. All right?
如果我的目标数比这个值要小呢?,我就在这边找就对了,对不对?,做完了这一步,我可以在下一步做相同的操作,假设我选中了这一分支?
But if, at any point, I get to a place in the list where the thing I'm looking for is smaller than the element in the list, I know everything else in the rest of the list has to be bigger than that, I don't have to bother looking anymore.
比当前位置数组的元素要小,我也就知道后面的数肯定,也都比我的目标数要大了,我就不用再继续进行下去了,这意味着目标数不在这个数组中,我就可以退出了。
Now, this is supposed to be one sixth, but I know I don't want any transcendental numbers here.
现在,这是六分之一,但是,我知道我不想要任何的超越数。
So any time that you're drawing these molecular orbital diagrams you want to keep in mind that the number of electrons that you have in atomic orbitals, you need to add those together and put that many electrons into your molecule.
任何时候当你们画分子轨道图时,你们要记住,原子轨道里的电子数,你要把它们加在一起,并放到分子轨道里去。
So it looks like a lot of - well we're going to find out, we're going to count--but a lot more Alpha's than Beta's.
我们来数一下,确认一下,选α的人要远远多于选β
Count of three, you're just going to go or not.
数到三,你们是否要参选
And I look at that value.
如果这是我要找的目标数,噢先生们。
All right, so I did this not at all purposely, but this can point out for you that you need to make sure that the number of electrons that you have in your molecular orbital does match up with the total number that you have in your atomic orbitals.
我并不是故意这么做的,但这告诉我们必须要保证,分子轨道里的电子数,和原子轨道里的,总电子数能对上。
I'm sorry, who stands up on the count of three?
对不起,数到三谁要站起来
So I'd like an integer please.
所以我想要一个整型数。
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.
知道背散射的概率就可以了,我们知道要除以,但还需要你们来搞清楚,分子上的数是多少,有多少个发生背散射的粒子,助教们请过来,把这些球分给同学们。
So on the count of three, anybody who's entering this election is going to stand up.
那么在我数到三的时候,谁想要参选就站起来
And we'll see if you try to mess with our functions by providing a string when we want an int, or providing an int when we want a string, you may very well get yelled at and the user will have to retry.
我们可以看到,如果你尝试打乱我们的函数,当想要一个int数时我们提供sting型,或者,当想要一个sting数时我们提供int型,你可能会被吼叫,然后用户不得不重新尝试。
Again, same kind of reasoning says, given some value x, I happened to pick a small one here, what's an easy way to do this? Well, let's just start at one. That's my variable I'm going to change and check.
好,尤其是,让我们到这里来,让我给大家看看第二个例子,让我把这个注释掉,这是我要解决的,第二个问题,假设我想找到一些整数的,所有除数,我想要找出来这个数的所有的除数。
We didn't just need that n, not just the principle quantum number that we needed to discuss the energy, but we also need to talk about l and m, as we did in our clicker question up here.
我们不仅需要n,不仅要这个可以,决定能量的主量子数,还需要m和l,就像我们做这道题这样。
It takes the number whose Fibonacci memo I want plus a memo.
它将我想要的斐波那契数,的值加上了参数。
So if I were to solve this problem, here's the way I would do it. I would say, first thing I want to do, is I want to input a value for the base as a float.
如果我想要解决这个问题,这就是我要解决它的方式了,第一件我要做的事情就是要,输入一个浮点数作为三角形的底。
Remember, we need those three quantum numbers to completely describe the orbital.
要知道,我们需要三个量子数,才能完全描述一个轨道。
And then, I wanted to ask something like membership.
然后我想要再看看成员数。
Right, I'm going to read in the values of the number of heads and the number of legs.
它看上去和Barnyard完全一样,现在我要读入头数和腿数。
But, as I said before that, we have some more quantum numbers, when you solve the Schrodinger equation for psi, these quantum numbers have to be defined.
但我说了,我们还有,其它的量子数,当你解,psi的薛定谔方程时,必须要,定义这些量子数。
应用推荐