This combining of data and functions on that data is a very essence of object-oriented programming That's really what defines it.
数据与函数的结合,是面向对象编程的核心,这也就是它的定义。
And the equation of state, pressure versus volume at constant temperature, is going to have some form, let's just draw it in there like that.
系统的态函数,恒温下压强比体积,变化曲线,就像这样。
We looked at the wave functions, we know the other part of solving the Schrodinger equation is to solve for the binding energy of electrons to the nucleus, so let's take a look at those.
我们看过波函数,我们知道解,薛定谔方程的其他部分,就是解对于原子核的电子结合能,所以我们来看一看。
Square root of 16, and my plot basically shows it crosses at 4 and-- well, I think that's minus 4.
我的图清楚的显示这个函数,在4和-4两个点和x轴交合。
My prototype, again, so that I can use it later increment without the compiler wondering what is this increment that you're referring to because it's not otherwise been declared.
我的函数原型,再次强调,我可以以后使用它,这样编译器就不会疑惑这个你提及的,是什么,因为是没有,被声明的。
Change the independent variable, find the change in the function, take the ratio and that's the derivative.
改变自变量,算出函数的变量,计算比值,这就是求导
What is Firm 2's best response as a function of q1?
1的函数即公司2的最佳对策是什么
We talked about the wave function for a 2 s orbital, and also for a 3 s orbital.
我们讲过2s轨道的波函数,也讲过3s轨道。
Well, if that function calls another function, you put another tray on, and so that new tray represents that function's chunk of memory.
好的,如果那个函数调用另一个函数,你再放一个托盘在上面,新的托盘代表,那个函数的内存块。
If you're writing a one line function, whose sole purpose in life is addition, and, clearly, this is about addition, well, then it's, in fact, A reasonable to use a shorter symbol like A, but I do have to specify it's type.
如果你在写一个一行的函数,它唯一的目的是,做加法,显然这是关于加法的,好的,实际上,用一个短的标识符是合理的,像,但是我必须指明它的类型。
sigma1s And what we end up for our molecular wave function is sigma 1 s.
最后我们得到了分子波函数。
Let's just quickly look at our special function.
看一下我们的特殊函数。
So that's the function I want to optimize.
因此这个函数就是我想要最优化的函数。
You have to pass it as input to another function, as you'll see as possible in problem's Set One specification, but it's ultimately up to you.
你需要把它传给另一个函数当入参,就像你们将,在习题集1中可能看到的,但它最终取决于你。
So. Here's the syntax of the function.
这就是函数的语法。
So, that's having to do with the actual wave function.
正的波函数有关,以后它会更加有关系。
It's the function of temperature, as B.
它是温度的函数。
So that's an equation of state.
所以它是态函数。
It's defined later down which is fine.
等下再定义这个函数,那也是可以的。
Now it's a stupid little function.
这是一个有点傻的函数。
What's the prototype of a function?
什么是一个函数的原型呢?
So, we can do that by using this equation, which is for s orbitals is going to be equal to dr 4 pi r squared times the wave function squared, d r.
用这个方程,对于s轨道,径向概率分布,4πr的平方,乘以波函数的平方,这很容易理解。
It makes sense to draw the wave function as a circle, because we do know that 1 s orbitals are spherically symmetric.
把波函数画成一个圆是有道理的,因为我们知道1s轨道是球对称的。
- So what's for all this function -- what's the role of this function in life?
这个函数是干什么的-,这个函数的最终角色是什么呢?
So let's think about lists. So if l is a list, l sort I can call something like s dot sort, l dot sort.
所以让我们想想链表,所以如果l是一个,链表我可以调用像是s,sort的函数。
Now downside of this, well, I've just now violated my preference for having main up top, maybe that's forgivable.
现在在后面,我违反了把main函数放在上面的优先级,可能那是可以宽恕的。
And it's taken me 25 calls.
我一共调用了25次函数。
Well, simply with the * notation at least on the way in when you declare the function called swap, you simply say this is not going to take an int and another int because that's useless.
好的,简单说,当你声明一个函数调用swap函数时,使用*符号,你可以简单说,这不能使用一个int数和另外一个int数,因为那是无效的。
So, we can say that a circle is a good approximation for a 1 s wave function.
所以我们说一个圆是,对1s波函数的好的近似。
Which we've expressed now in terms of S and V, S and p.
我们把他们写成S和V以及S和p的函数。
应用推荐