Why is this much nice? Well, that's a handy piece of code. Because imagine I've got that now, and I can now store that away in some file name, input dot p y, and import into every one of my procedure functions, pardon me, my files of procedures, because it's a standard way of now giving me the input.
为什么这样很好呢?,这是一段很好用的代码,因为想象下如果我有了这段代码,我能把它用某个文件名保存起来,后缀是。py,导入到所有的处理函数中,抱歉,我的处理文件,因为这是一个标准的输入方法。
Remember, we don't do a one-to-one correlation, because p x and p y are some linear combination of the m plus 1 and m minus 1 orbital.
记住,我们不需要把它们一一对应,因为px和py轨道是,m等于正负1轨道的线性组合。
Now, dereferencing works on y and because the pointers are sharing 13 that one pointee, they both see the 13.
现在,解引用在y上起作用了,因为指针共享,同一个指针数据,它们两个都看到了。
And I think in the polar one I said, if, what did I do there, I said, yeah, again if the x and y are greater than the other one, I'm going to return them to it.
然后我要返回一些值,我认为在极坐标的形式下我说过,如果,我在这里做了什么来着,我说过,对,再说一次,如果x和y坐标。
Then, I gave you one other very important example of a particle moving in the x-y plane.
下面我再拿一个重要的例子,质点在 x-y 平面内的运动
And what is all this stuff? Y is at one, one-half, one-third?
那这一些是什么,呢,Y在1,1/2,1/3上?
It's more likely than Y the probability that they're going to choose right is more than Y, then the highest line of these three is this one, which corresponds to my choosing Middle.
即比Y大,也就说对手选右的概率大于Y,那么这三条线中最高的是这条线,这条线表示我选中的收益
py So you can either write 2 p x or 2 p y, whichever one you want is fine.
这是对的,你们可以把它写成2px或者,哪种都可以。
So, what we end up having is three of these pi -- 2 p y 2 p y bonds, we can have one between these two carbons here.
我们剩下的有三个π键-,2py2py键,在这两个碳原子之间会有一个。
So if you picture this as our s p 2 carbon atom where we have three hybrid orbitals, and then one p y orbital coming right out at us.
如果你把这想象成sp2碳原子,这里有3个杂化轨道,然后一个py轨道朝向我们。
So, you can see, it's much easier to describe that as one term, r here, instead of using both y and z.
所以,你们可以看到,用r而不是y和z来做描述,使得它变得更为简单。
You can see that we have two unpaired electrons in this molecule here one in the pi 2 p x star, and one in the pi 2 p y star orbital.
你们可以看到我们这个,分子力有两个未配对电子,一个在π2px星,一个在π2py星轨道。
And actually, if I don't want to clobber, as we say, overwrite the value of my variable, ; I could declare another one and store the return value in Y; Y so now I have two ints in memory; X and Y, 3 one with two, one with three.
实际上,如果你不想彻底清除,像我们说的,覆盖那个变量的值,我可以申明另一个变量Y,并在Y中保存那个返回值;,现在内存中有两个int数,X和,一个的值为2,一个为。
And now we get the p orbitals, remember we want to fill up 1 orbital at a time before we double up, so we'll put one in the 2 p x, then one in the 2 p z, and then one in the 2 p y.
我们到了p轨道,记住在双倍填充之前,我们想要每次填充至一个轨道,所以我们在2px填充一个然后2pz填充一个,然后2py填充一个。
So i and j are vectors of length one, pointing along x and y.
和 j 是模长为1的矢量,分别指向 x 轴和 y 轴方向
Once I've got that, you notice I can now define a polar point, same way. Notice I've now solved one of my problems, which is, in each one of these cases here, I'm creating both x y and radius angle values inside of there.
你们注意到我现在可以,定义一个极坐标点了,以同样的方式,请注意到现在,我已经解决了我的问题之一了,也就是,在这些例子中的每一个,我在里面都创建了x,y值。
And that's the following. Let's take a particle that is moving in the x-y plane, so that at one instance-- sorry, let me change this graph-- is here--oh, this is bad.
接下来,我们来看一个物体,在 x-y 平面内运动,在这个例子中,对不起,我要重画一下这个图,在这里,这画得不好
int Y Well, I said int X and int Y; so that gave me one square here called X, one square here ; or wherever, called Y, done, one was put in here; two was put in here, and then I called this function swap.
好的,我声明了int,X,和;,然后我这里有个正方形叫做X,一个正方形,叫做Y,完成,1放在这里;,2放在这里,然后我调用这个swap函数。
One along x and one along y, right?
一个是 x 分量,一个是 y 分量,对吧
We know it's going around in a circle because if I find the length of this vector, which is the x-square part, plus the y-square part, I just get r square at all times, because sine square plus cosine square is one.
我们之所以知道它做圆周运动,是因为我求出了这个矢量的模长,也就是 x 的平方加上 y 的平方,我就得到了它在任意时刻的模长平方,因为正弦平方加余弦平方始终等于1
应用推荐