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.
一个特定的版本,我现在命名了一个内置变量,并给它赋值了,我刚刚做的也就是给它。
f=0 I would write f of x is in big Oh of n squared.
我写下了。
X I'm passing an X, and yet I'm also assigning the return value to X. So just intuitively what's going to be the effect of this one line of code?
我传一个X,之后我把返回值赋值给,很明显,这一行代码,将会产生什么作用?
Now, just to repeat, again I know I've got some math phobics in the audience, let me just slow down a second, all I'm doing here is I'm saying look at this equation of the pink line, look at this equation of the blue line, X is when they cross, i.e., they are equal to each other.
我再重复一遍,我知道你们之中有些人数学不怎么好,我放慢一点说,我是这么解的,看这条粉线的方程,还有这条蓝线的方程,X是二者的交点,也就是说这点两个方程相等
For example, F x y z if I have an equation that looks like this, f of x, y, z.
打个比方,我有个这样的方程。
And then, you start thinking, "Well, I could really start doing this if only X and if I had this person or if this technology existed or if this happened or this happened."
之后,你会开始思考,恩,只要某项条件成熟了,只要我认识这个人,或是如果这个技术存在,或是如果这个或那个发生了,我就能开始落实这个点子了“
It might turn out if I had X-ray vision that what I see is this... Then the answer'd be there's not one train here.
有可能是,我看到的是这样。,答案就不是同一辆火车。
I think it becomes 30 degrees for the freezing of water and 22.5 x 4, which I don't know what it is, 90 100 or something -- no, it's 90 I think.
我想水的冰点,应该变成了30度,22。5,4,我不知道是多少,大概100左右--不,我想是。
Initially, its location as a function of time is equal to i times x plus j times y.
初始时刻,它的位移作为时间的函数等于,i ? x + j ? y
x 4 x 4--possibilities, because I could have here, here, , , - 4 x 4 = 16.
x4x4种可能性,因为这有AGCU四种,这也是四种,4x4=16.
The basic definition-- the expected value of some random variable x--E--I guess I should have said that a random variable is a quantity that takes on value.
最基本的定义,某一个随机变量X的期望值E,我应该提到过,随机变量是一个可以取值的数
Take many of you through graduation When you leave Yale, what do you want--like, "I had X sexual partners, " and that's what I wanted" ? Or your lifetime?
如果你们多数都毕业了,当你们离开耶鲁时想要什么,诸如,“我有过X个性伴侣,那就是我想要的“,在你这一生呢?
All right, it's so if I looked at it, sorry, IF x is less than y, THEN check to see IF x is less than z, and if that's true, print out x is the smallest.
好,代码是这样的,对不起,是不是x比y小,然后去看看是不是x比z小,如果都为真的话,显示x为最小值。
Yeah. Suppose I choose it right down there I guess 0. Well, the tangent there will not even have an x intercept. So I'm really going to be dead in the water.
好,如果我选猜想数为0,好吧,这个点的切线甚至和x轴都没交点,所以在这儿这一原则,真的不起作用了。
It's reasonable because it's meant TMP for temporary purposes just to call it temp or T-M-P for short, X and I can define temp as -- why don't I set it as equal to X, initially, because now that I've stored X in a separate chunk of memory, I can now change its value and then I can say Y gets, not X, but temp, and so now I've actually swapped these values.
这是合理的,因为它是为,暂时的目的,只要叫它Temp或简称它为,我可以定义temp为--为什么我不把它设定为等于,最初的,因为现在我把X存储在一个单独的内存块中,我现在可以改变它的值,然后我说Y等于,不是X,而是temp,所以现在我交换这些值。
When I call this class definition, it calls init, init and I give it an x and a y value.
我说过,当我们,调用这个类的定义的时候,它会去调用。
x >> Okay. I'll dereference the pointer x 42 to store the number 42 into its pointee.
>,好的,我废除这个指针,在指针数据中存储数字。
XYZ I might as well do it as x, y, z because we are talking about something that is going in three space.
我最好设成,因为我们在讨论,三维的事物。
x y z And I have another equation f of x, y, z.
若我有另一个方程。
If I have three, I have 16 x 4 or 64 possible choices, way more than enough.
那如果是三个碱基一组,那就有16x4种,六十四种组合,那就足够了
How do I posit-- why do I believe in x-rays, even though I don't see them?
我如何证实,我为什么会相信X射线是存在的,尽管我压根看不见它
Even if I was that guy in the X-Men or the Matrix or whatever it was, who could reason his way into making people do things.
就算我是X-Men或者尼奥,我能影响到别人的推理
For the x part, I'm going to write x = x0 + v0 t.
对于 x 分量,有 x = x0 + v0 ? t.
You cannot answer that, even if I promised to move only along the x-axis, because I think...I don't want to pose this as a question, because I think the answer is fairly obvious to everybody.
即使我保证只在 x 轴上移动,你们仍然无法回答,因为我觉得...我不想将其作为一个问题,因为我认为答案是显而易见的
I'm doing a test there to say, x if the string x is less than the value of b, and x does not appear before b as strings, then I was going to do, oh, a couple of things, because they're at the same block level.
我正在做一个测试来看看,字符串,是不是小于b的值,而且x不在b之前作为字符串出现,如果是真的话我就要做,一系列的操作,因为他们是在同一个块等级上。
This is saying, that's a class, true or sorry, an instance of a class, and I'm going to get the x value associated with it.
那么两个点是同一个点,我会返回,注意格式,这儿的意思是,它是一个类,噢对不起。
Another way to represent a point in a plane is I've got a radius and I've got an angle from the x-axis, right, and that's a standard thing you might do.
平面上面的点的方法,也就是极坐标,上面那种方法其实是,如果你们喜欢我这么说的话,笛卡尔坐标表示法。
And we must know what the result is supposed to be. Typically when you run an experiment, you say, and I think the answer will be x.
这样我们可以来查看代码的进程,我们还必须清楚结果应该是怎么样的,比如当你运行一个实验的时候。
I was expecting to compare x- and y- values, not radius and angle.
噢,发生了什么?,好吧有错误了。
应用推荐