What I'm more interested in here than in the result of the simulation, is the process of creating it.
然后你们可以进行思考,我对这些过程,比对仿真程序的结果更感兴趣。
And to be able to really have that kind of conversation and then what do those believes have to do with our academic studies and our desires for how we live our lives? -Right.
我希望他们能够真正地进行这种对话,然后把这些信仰,和学业,以及我们该如何生活,联系起来,-是的。
This is a little file I created, all right, and I'm going to start with a sequence of these things and walk them along, again I invite you to put comments on that handout so that you can follow what we're going to do. All right?
这是我创建的一个小文件,好,然后我回去以一系列这样的事情,开始然后进行下去,我还是想大家都在手册上做一些注释,这样我们就能对将要做的事情,做一个记录了,对不对?
I wanted to talk a little bit about problems and then I'll conclude.
我想就一些问题稍微讲一下,然后我会进行本次课的总结
Well, you can't adopt the policy of "I'm going to wait for this pig to dance " and when it does I'm going to reinforce it" because it's going to take you a very long time.
那么,你就不能说,“我要等这头猪跳舞,然后再对它进行强化“,因为这会花掉你很长的时间。
You are not gonna be graded The workshop, the virtual of it is that you bring up problems that other have not thought of and then there can be some conversation, from your point of view, not mine.
你们不会后悔的,讨论课的实质就是,你提出了一些其他人没有想到的问题,然后进行一些讨论,从你的观点来陈述,不要从我的观点来陈述。
Well you have to come with good humor, and that I hope you'll have; come to the lectures and do the reading, see the films, which I'll talk about in awhile, and go to sections, and hopefully participate in sections; and the sections tend to be fun in this course.
上课的时候要有幽默感,我希望你们有,来上课然后读文章看电影,我一会就讲这些,然后进行不同的章节,希望你们能充分参与其中,那些课程在这门课里还是比较有趣的
And I'm going to initialize it, create them, with an opening price.
我要对它进行初始化,给它们一个初始价格然后创建它们。
We're checking the end test and incrementing, actually I was going to, I commented that out for a reason you'll see in a second, but I, normally I would keep this on, which would let me, at each step, see what it's doing. If I ran this, it would print out each step. Which is helping me make sure that it's incrementing the right way.
对不对?进行终结测试然后递增,实际上我要,因为某些你们,马上要明白的原因我把这里注释了,但是我通常会一直这么做,这样能让我看到每一步都做了什么,如果我运行这个程序,它会在每一步都,进行显示,这能帮助我让我确信程序是,在以正确的方式递增。
I just kept sub-dividing down until I got really easy problems, and then I combine them back.
我不断的进行子分解,直到得到简单的问题,然后我再把它们合并回去。
And then I could do things like again, say, okay having done, that let me just run it here, run that, so I've now got polar point 1, and polar point 2.
然后给它们赋值半径和角度,然后我可以进行刚才的操作,也就是说,对刚才的笛卡尔坐标进行的操作,让我们来运行下它吧,运行下,现在我有一个极坐标点。
And I want to basically try and use these things to do something with them.
我想要试试然后,用这些声明来进行一些操作。
It says, well I'm going to print out first and last just so you can see it, and then I say, gee 2 if last minus first is less than 2, that is, if there's no more than two elements left in the list, then I can just check those two elements and return the answer.
然后它计算了尾点和开始点的差,如果小于2的话,也就是说数组中的元素小于等于,我对这两个元素进行比较,然后返回结果就可以了,否则的话,我们就去寻找中值点,注意它是怎么实现的,首先这个指向一个列表的开头。
应用推荐