What lambda that does, it creates on the fly a function, as the program runs. That I can then pass around.
这里的入是在函数运行的时候,由一个函数创建的,然后我会传递这个值。
Our friend Schr?dinger told us that if you solve for the wave function, this is what the probability densities look like.
我们的朋友薛定谔告诉我们,如果你用波函数来解决,你就会知道这些概率密度看上去的样子。
Now Isaac Newton and/or Joseph Raphson figured out how to do this kind of thing for all differentiable functions.
既然牛顿和拉复生已经,指数了如何解这种可导函数,因此我们就不用太担心了。
We can graph out what this is where we're graphing the radial probability density as a function of the radius.
我们可以,画出它来,这是径向概率密度,作为半径的一个函数图。
So what they do is, they're describing how these thermodynamic properties change, in terms of only state functions and state variables.
他们的作用是描述,随着状态函数和状态变量的变化,系统的热力性质如何变化。
If you scroll back up on the printout or screen here, you'll see that you can actually not only declare function's prototypes, their general structure.
如果我回滚到打印输出或者这个屏幕,你们将看到你们不仅可以声明函数的原型,它们的一般结构。
What I plot on this graph here is as a function time, years, dates, life expectancy as a function of time.
在这儿的这张图是,一个关于时间,年,日期的函数,将寿命长短作为时间的函数
Identify the best responses of each player as a function of the others and find out where they intersect.
把每个人的最佳对策看成别人策略的函数,然后找出函数的交点
What's a function, what's a derivative, what's a second derivative, how to take derivatives of elementary functions, how to do elementary integrals.
什么是函数,什么是导数,什么是二阶导数,如何对初等函数求导,如何进行初等积分
And the solution to this equation looks like this where it is written in terms of a quantity called a wavefunction.
这个方程的解法是,看起来像是写成数学符号就是,波函数。
Now I got one just simple thing, and I simply have isolated that module inside of that function.What about abstraction?
而现在我只要做一件简单的事,那就是我只需把这个模块,加到函数中去?
If you have a quantity which is constant over any closed path, that quantity is a thermodynamics state function.
如果有一个物理量,对任何闭合回路积分是常数,这个物理量就是一个热力学态函数。
so we're going to use this concept of the path to go from the initial point to the end point.
在处理状态函数时,路径的选取。
We started talking about these on Wednesday, and what we're going to start with is considering specifically the wave functions for multi-electron atoms.
我们从周三开始讨论这些,而且我们将要以特别地考虑,多电子原子的波函数,为开始。
are all functions of state and parameters that we can control like temperature and pressure.
公式里面的全部都是态函数,我们控制态函数的参数比如温度或者压强。
When you call a function, what actually happens is that function gets its own chunk of memory that's identical in size to the data type that it expects.
当你调用一个函数,实际上发生的是,函数得到了自己的内存块,相同的类型,是占有一样大小的内存的。
We can do the exact same thing when we talk about lithium, but now instead of breaking it up into two wave functions, we're breaking it up into three wave functions because we have three electrons.
在讨论锂时,我们也可以做,完全相同的事情,但不是把它分为两个波函数,而是分为三个波函数,因为我们有3个电子。
printf That's not actually where someone implemented print F and related functions, rather, in dot H files, by convention, are prototypes.
那实际不是有某人在哪里执行,相关函数,而是在,h文件中,按照惯例,它们是函数原型。
I tell you something about the second derivative of a function and ask you what is the function.
我告诉你一个函数的二阶导数,然后问你这个函数是什么
There's been a lot of work done on these over the years, but in fact, it's pretty hard to invent a good hash function. So my advice to you is, if you want to use something was a hash, go to a library. Look up a good hash function.
已经做过了很多的尝试和努力,但是事实是,很难发明出一个好的哈希函数,所以我给你们的建议是,如果你们想使用哈希功能,到函数库中查找一个好的哈希函数。
What we are going to say is that the wavefunction for molecular orbitals is going to be an additive sum of the wavefunctions of atomic orbitals.
我想说的是,分子轨道的波函数,就是多个原子轨道,波函数的线性叠加。
There's no classical analogy that explains oh, this is what you can kind of picture when you picture a wave function.
可以解释:,哦,这就是,你想象的,波函数的样子啊。
Literally, return the control from this function, and take the value of the next expression, and return that as the value of the whole computation.
正如字面意义上说的,从这个函数返回,然后取得下一个表达式的值,并把这个值作为整个计算的结果返回。
So now, henceforth, when you say, to declare a function, I am declaring a function here but down here am I quote unquote defining it or implementing it.
从此以后,当你说,声明一个函数,我在这里声明了一个函数,但是到这里我定义它或执行它。
So when you define a function, you have, as we've seen these curly braces, that define all ; of the code that's associated with that function; open curly brace code, close curly brace, that is the function.
当你定义一个函数,就像我们看到的这些花括号,定义了与,那个函数相关的所有代码;,左花括号,代码,右花括号,这就是一个函数。
Same way that I have multiplication or division as a primitive, functions are going to give me, or somebody else who wrote them for me as part of a library, a new primitive that I'm going to be able to use.
我在用乘法或者除法当做原语,这些函数,或者别人写程序库中的函数,将会给我返回一个,我能使用的新原语。
So, saying wave functions within molecules might sound a little confusing, but remember we spent a lot of time talking about wave functions within atoms, and we know how to describe that, we know that a wave function just means an atomic orbital.
说分子内的波函数可能,听着有点容易搞混,但记住我们花了很多时间,讨论了原子中的波函数,而且我们知道如何去描述它,我们知道波函数意味着原子轨道。
You're calling functions, functions, functions, but you're allocating heap, heap, heap, heap memory for your words.
我们一直调用函数,函数,函数,你一直为单词分配堆,堆,堆,堆。
- So what's for all this function -- what's the role of this function in life?
这个函数是干什么的-,这个函数的最终角色是什么呢?
And, in fact, it kind of looks like a function, and yet here's a semicolon I just said that can get you into trouble, and yet that's not actually a function, because there's no interesting lines of code, because it turns out the interesting code is down here at the bottom.
实际上,它有点像一个函数,并且这里有一个能够使你陷入麻烦当中的分号,那个事实上也不是一个函数,因为这里没有有用的代码,因为,有用的代码都在底端。
应用推荐