OK, as I said, I want equality in the case of points to be, are the x- and y- coordinates the same?
好,正如我所说,我想要这个例子中的,点相等的意思是?
At every instant, it's got a location given by the vector R; R itself is contained in a pair of numbers, x and y, and they vary with time.
在每一个瞬时,它的位置由位矢 R 给出,R 本身包含了一对坐标值 x 和 y,并且它们都随着时间的变化而变化
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,导入到所有的处理函数中,抱歉,我的处理文件,因为这是一个标准的输入方法。
It's going to be positive in terms of its wave function or in terms of its phase anywhere where y is positive.
只要y大于零它的波函数,或者说是相位为正。
XYZ I might as well do it as x, y, z because we are talking about something that is going in three space.
我最好设成,因为我们在讨论,三维的事物。
The value 2 is still in what we called Y. It's now also in what we called X, but notice inside of main and here's the power.
数值2还是在y中,现在,它也在x中,但注意在main中,这是那个能力。
Antibodies look like this, they're big proteins, if you looked at them under a microscope or if you looked at them in cartoons they're shaped like the letter Y.
抗体看起来就像这样,它们是大型蛋白,如果你用显微镜观察抗体,或者从图上看的话,它们都呈字母Y形
So again, if you're at X and the winner is at Y, it hurts you minus the distance between X and Y, in terms of your unhappiness, about having a winner who's far away from you, winning.
再说一遍,如果你在X且获胜者在Y,它对你的伤害等于X和Y之间的距离,即,当选人和你之间的距离,这就是你在选举之后郁闷的程度
Quite often, it's natural to pick x and y in a certain way, because starting a projectile near the Earth, it makes sense to pick the horizontal as x and vertical as y.
我们经常会很自然地选取 x 轴和 y 轴,因为如果在地表附近做抛物运动,我们通常以水平方向为 x 轴,竖直方向为 y 轴
If it's in polar form I passed in a radius and angle and I'll compute what the x- and y- value is.
以及半径和角度,但是现在是这样的,不管我是以哪种形式。
If two arrows are equal, you cannot be longer in the x direction and correspondingly short in the y direction.
如果要使两个矢量相等,那么即使 x 分量长一些,y 分量相应地小一些也是不行的
px And I arbitrarily chose to put it in the 2 p x, 2pz we also could have put it in the 2 p y or the 2 p z, it doesn't matter where you double up, they're all the same energy.
我任意地选择放入至,我们也可以把它放入2py或,它与你在哪双倍填充没有关系,它们都在相同的能级。
Um-hmm. So, it's going to be the y z nodal plane, or in other words, we can say it's any place where phi is equal to 90 degrees.
嗯,是yz平面,换句话说,是在phi等于90度的面。
It can be x plus some change in x plus j times y plus a change in y.
可以写成 x 加上 x 方向的变化量,再加上 y 加上 y 方向的变化量
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填充一个。
Let's test it in all possible combinations of x and y and see if we get the right answer.
来测试并看看,返回的结果正确不正确。
If its in Cartesian form I'll pass in an x and y and compute what a radius and angle is.
来得到的这个点,我都可以得到这个点的,全部的这种信息。
Now, suppose in fact these weren't x and y glued together, these were radius and angle glued together.
我实际也说过了,我在这里操作的是,和这两个点。
It says, if I want to print out something I built in Cartesian form up here, says, again, I'm going to pass it in a pointer to the instance, that self thing, and then I'm going to return a string that I combine together with an open self and close paren, a comma in the middle, and getting the x-value and the y-value and converting them into strings before I put the whole thing together.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
I'm going to say, gee, p2 is the x value the same in both of them, and if it is, and the y value's the same, then this is the same point, I'm going to return true.
这样的数据对象,我会把它们命名为p1和,我会去查看,看看两个对象中,的x值是不是相同,如果相同的话,就去查看y值是否相同。
I take the time and put it in the y equation and demand that the y I get, agrees with this y.
然后我把时间代入 y 的方程,令得到的 y 的表达式等于这一段的 y
You've got to realize that in calculus, the symbols that you call x and y are completely arbitrary.
你应该明白在微积分中,选x还是y当符号是完全任意的
Then, I gave you one other very important example of a particle moving in the x-y plane.
下面我再拿一个重要的例子,质点在 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函数。
It's got a change in x and it's got a change in y.
在 x 方向和 y 方向上分别发生了变化
j points away from the origin in the y direction.
从原点指向 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值。
应用推荐