Y I'm not passing an x and I'm not passing a Y, &y I'm passing an ampersand x and ampersand y and can you take a guess as to what the ampersand operator must mean?
我不是传递X,也不是传递,我传递的是&x和,你们可以猜一猜,这个&符号是什么意思?
For example, F x y z if I have an equation that looks like this, f of x, y, z.
打个比方,我有个这样的方程。
When I call this class definition, it calls init, init and I give it an x and a y value.
我说过,当我们,调用这个类的定义的时候,它会去调用。
It was awkward teaching an introduction Y and probably for that reason while I was teaching Lit 300, which was then called Lit Y, Z Paul de Man was teaching Lit Z.
教入门课非常尴尬,也许正因为这样,我教文学300时,当时它还叫文学,保罗,德,曼教教文学。
X Y Z It's more interestingly named an X or Y or Z.
你也可以把它命名为。
You can either think of it as an arrow and imagine the arrow, or you can reduce it to a pair of numbers, x and y.
你既可以用有向线段来表示,也可以用一组数字来表示,x 和 y
So we're talking about an experiment when you generate-- Each experiment generates both an x and a y observation and we know when x is high, y also tends to be high, or whether it's the other way around.
这里说的是由试验产生的,每一次试验可以获得一组x与y的观察值,当x值大的时候,y值可能也大,或者相反
All right, c p 1 dot y, x I've said assign that to the value 2, 2,0. So now c p 1 has inside of it an x and y value.
一个特定的版本,我现在命名了一个内置变量,并给它赋值了,我刚刚做的也就是给它。
And I originally decided I was going to have as points, it's going to have internal values of an x and a y.
写了一堆代码,然后我以开始决定,是要把值放到点里面的,点有内部的x坐标和y坐标。
So I'm going to have an assignment of y, I'm going to have an assignment of iters left, I've got a comment that I had borrowed in order to do some debugging, and then what do I want it to do?
因此我需要对y进行赋值,需要对iters,left进行赋值,还有一个我用的别人的,用来调试的一些注释,那么接下来我希望程序怎么运行呢?
And you can very quickly take this feature to an extreme 10 and start putting X and Y and A and B and 10 and all your variables up top because it would seem to solve all of your problems and stop all of your thinking, but it's generally not a good thing.
你可能迅速地使这个特征成为一个极端,开始把X和Y和A和B和0,和所有的变量都放在最前,因为好像它可以,解决你的所有问题,并中止你的想法,但通常这不是一件好事情。
It's easy to think of a point as just a list of an x- and a y- coordinate.
或者说有两个元素的数组,把一个点认为是含有x坐标。
This is not an x versus time plot or y versus time.
这不是 x 坐标关于时间的图像,或 y 坐标关于时间图像
I mentioned something of increasing importance only later, which is that you are free to pick another set of axes, not in the traditional x and y direction, but as an oblique direction.
后来我又讲了更重要的知识点,你可以随意选取另外一个坐标系,不再是传统的 x 和 y 方向,而是倾斜过的方向
If its in Cartesian form I'll pass in an x and y and compute what a radius and angle is.
来得到的这个点,我都可以得到这个点的,全部的这种信息。
But he said the energy of an X-Y bond is going to be equal to the square root.
但他说XY键的键能,会等于XX键与YY键键能乘积的平方根。
Well you know what a point is, it's got an x- and a y- coordinate, it's natural to think about those two things as belonging as a single entity.
把这两个坐标认为,是属于一个独立的实体,是理所当然的事情,因此实现这个目的的。
Right now it's a simple template, but it's a template for creating what a class looks like, and I now have an x- and y- value associated with each instance of this.
那么大家明白了为什么,我说类是一个模板了,对不对?,现在它只是一个简单的模板,但是它是一个用来-,创建形成一个类的模板。
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.
这不仅仅是个列表,它是怎么来做的?,流程是:如果我想要返回,一些已经在笛卡尔模式下建好的值,好,再说一遍,我首先要传入一个,指向实例的指针,也就是,然后我会返回一个,由开括号,闭括号,中间的一个逗号,以及提前转换为字符串格式的。
And I'll give it an x value of 3 3 and a y value of 4.
一个笛卡尔坐标3,然后给p2的x坐标赋值为。
So, what we have found out so far, I'm purposely going from x to y because I want you to know that the unknown variable can be called an x or can be called a y.
到目前为止,我们有这些结论,我特地把x换成y,因为我想让你们明白,未知变量既可以写成x,也可以写成y
应用推荐