Okay, so while not equal to, so bang equals, exclamation point equals is computer science syntax for saying not equal to, 0 while not equal to 2 which it is not, it is equal to 0.
好的,尽管不等于不是相等的反写,但惊叹号在计算机科学的语法是不等于的意思,尽管不等于2,但它是等于。
Thing I've got a little procedure that could do that, but you know the simplest thing I could do is to say well, gee, wait a minute, why don't I just check to see if these are the same thing?
这两个点是同一个点么?,我已经写了一小块代码,可以提供这个功能,但是你知道的我可以做的,最简单的事情就是说好,嗯?,等等,我为什么不直接去看看,这两个东西相等不相等呢?
I'm sorry, I don't understand since the left hand side of your equation does not equal the right hand side, isn't that discount, not price?
对不起,我不太理解,这里等式左边和等式右边,并不相等,这里应该是折扣率而非价格
So, we can think about why is it that these are not equal.
我们可以想一想它们为什么不相等。
to take my cylinder now, and the external pressure and the internal pressure are not going to be I'm going to start with my cylinder here, I'm going to put little pegs here so it doesn't fly up.
活塞内外的,压强不相等,我们在,放上插销,以防止活塞。
The way I've drawn it they're not the same at all.
我画的一看就不相等
Well, they don't have to share equally, do they?
他们不需要完全相等的共享,不是吗?
You cannot have two vectors equal without exactly the same x component, exactly the same y component.
你不能说两个矢量相等,如果它们的 x 分量不完全相同,或者 y 分量不完全相同
So what's going on in this case is, I want to distinguish between shallow equality and deep equality.
第一件事情就是,测试浅意义上的相等,这什么意思呢,这是个不太好的英语句子。
Having done that, I could do the same thing, so I suppose I take this branch, I can pick a spot like, say, this one, and look there.
再从其中随即选取一个元素,比如这一个,请注意,如果相等则结束,如果不相等的话就在它的左边或右边找。
If it's there, I'm done. If not, I go there.
如果不相等的话,我继续去下一个元素比较。
This is going to end up at a different temperature by the way. You saw this last time in a slightly different way. Last time what you saw is we compared isothermal and adiabatic paths that ended up at the same final pressure, and what you saw is that therefore they ended up in different final volumes.
末态温度是不一样的,上次你们看到的,和这个有一点不一样,上次我们比较的是末态压强,相等的等温过程和绝热过程,因此它们的末态,体积是不一样的。
In either case, I take that value and multiply back by two, if it was even I get back the original number, if it was odd, I'm not going to get back the original number, so I can just check to see if they're the same.
在两种情况中,我都把结果值,再乘以2,如果x是偶数我就,得到了原来的值,如果x是奇数那么就不会得到,原来的值,因此我看看得到的值,和原来的值相等不相等就可以了。
Which means, next time through the loop, that's going to pop out and return an answer.
循环会跳出并返回这个答案,如果不相等的话。
No. All right, good answer.
不相等,好,回答得很好。
V2 And there's going to be some volume V2 and some volume V1, but are not necessarily the same. Especially since the pressures are different. we don't know yet about temperature so I don't know what to say about these volumes because I don't know what the temperatures' are going to do.
这里的体积会变成2,这里的容积是V1,它们不必相等,尤其是当压力不相等的时候,我们还不知道温度,所以我不能说这里的容积,是多少因为我不知道,温度会怎样变化。
应用推荐