And that's going to be valuable to me when I want to get back to using these things, right?
时髦的东西,这代表了它的种类是,笛卡尔坐标?
If I want to get out right now the versions of these things, I can ask what's the value of c p 1 x, and it returns it back out.
你可以在那里看到那些,代表笛卡尔坐标点的东西,如果我想要得到现在,这个类的版本的东西的话。
That was Cartesian space. When I plot r as a distance out from the nucleus that is sort of our simple-minded planetary model. Now let's look at energy.
笛卡尔坐标系,当我用r表示,离原子核的距离时,那只是我们头脑中简单的,类似行星的模型,现在我们看一下能量问题。
And so I'm going to go back to this idea of a class, and let's build the first of these, and that is shown right here on this piece of your handout.
你把半径加到一起,你不会把角度加到一起,你需要再笛卡尔坐标下,进行这个操作,那么我这里在讲的就是。
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.
然后给它们赋值半径和角度,然后我可以进行刚才的操作,也就是说,对刚才的笛卡尔坐标进行的操作,让我们来运行下它吧,运行下,现在我有一个极坐标点。
Right, and just to get a sense of this, let's look at a simple little example, so on your hand-out, you'll see I've got a little piece of code that says assuming I've got one of these points, I want to do things with it, for example I might want to add them together.
这些数组中的一个,你怎么能够知道,它是哪种类型的呢?,你怎么知道它是以笛卡尔坐标,表示的还是以极坐标,形式表示的呢?,你没有可以用来区分的东西,你没有说明这种信息,聚集实际上的意义。
And I'll give it an x value of 3 3 and a y value of 4.
一个笛卡尔坐标3,然后给p2的x坐标赋值为。
应用推荐