What lambda that does, it creates on the fly a function, as the program runs. That I can then pass around.
这里的入是在函数运行的时候,由一个函数创建的,然后我会传递这个值。
The only function it is -- it doesn't care where the gas is. It only cares where the temperature is.
是温度的函数,它只是温度的函数,不管是什么气体。
So when you operate on the wave function, what you end up with is getting the binding energy of the electron, and the wave function back out.
所以当你将它作用于波函数时,你得到的是电子的结合能,和后面的波函数。
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.
当你调用一个函数,实际上发生的是,函数得到了自己的内存块,相同的类型,是占有一样大小的内存的。
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.
把每个人的最佳对策看成别人策略的函数,然后找出函数的交点
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.
我在用乘法或者除法当做原语,这些函数,或者别人写程序库中的函数,将会给我返回一个,我能使用的新原语。
I tell you something about the second derivative of a function and ask you what is the 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.
我想说的是,分子轨道的波函数,就是多个原子轨道,波函数的线性叠加。
.. How valuable-- how well off you are, how valuable your life is, is a function of the contents, the pleasure and the pain.
生命的价值-,你有多幸福,你的生活有多少价值,是生活内容的函数,即快乐与痛苦的函数。
are all functions of state and parameters that we can control like temperature and pressure.
公式里面的全部都是态函数,我们控制态函数的参数比如温度或者压强。
It turns out there's a new function strlen S-T-R-L-E-N that you probably have not used yet called strlen, S-T-R-L-E-N, programmers early on and still like to be succinct but communicates sufficiently what they mean.
结果这里有个新的函数,你可能没有使用过,叫做,早期的和现在的程序员喜欢简洁地,但是能充分的传达他们的意思。
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个电子。
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.
当你定义一个函数,就像我们看到的这些花括号,定义了与,那个函数相关的所有代码;,左花括号,代码,右花括号,这就是一个函数。
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.
说分子内的波函数可能,听着有点容易搞混,但记住我们花了很多时间,讨论了原子中的波函数,而且我们知道如何去描述它,我们知道波函数意味着原子轨道。
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.
如果你在写一个一行的函数,它唯一的目的是,做加法,显然这是关于加法的,好的,实际上,用一个短的标识符是合理的,像,但是我必须指明它的类型。
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.
已经做过了很多的尝试和努力,但是事实是,很难发明出一个好的哈希函数,所以我给你们的建议是,如果你们想使用哈希功能,到函数库中查找一个好的哈希函数。
So that's the function I want to optimize.
因此这个函数就是我想要最优化的函数。
Anybody have an idea? What's the one function of state? I'm the system, the rest are the surrounding. What's the one function of state that's constant when I'm doing all my chemical reactions to move my arms around?
态函数又是什么呢?,我是一个系统,其余的是周围的环境,那么当我在做所有的化学反应,去四处移动我的手臂的时候,什么量是常数?
I'm using the fact that when you take a cosine and change the angle inside the cosine, it doesn't care. whereas, if you go to the sine and change the angle inside the sine, it becomes minus sine.
我用了一个结论,当你使用余弦函数时,改变角度的正负,函数值不变,而对于正弦函数,改变角度的符号,则函数值也会变号
And one of the ways you can make a program crash, intentionally or not, is to essentially use up too much memory or call too many functions and what happens is, bam, one hits the other and bad things happen.
其中一个方式能使你的程序崩溃掉,有意或无意的,它本质上使用了太多的内存,或者调用了太多的函数,所发生的,崩掉,一个冲突了另一个,然后发生了坏事情。
If you want it to take a so-called argument or a parameter, there's a subtle semantic distinction between arguments and parameter, but for all intents and purposes, they're the same thing.
如果你想要你的函数携带参数或,参量,这里有一个微妙的语义差别在,参数和参量之中,但是为了所有的意图,和目的,他们作用是一样的。
- 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.
实际上,它有点像一个函数,并且这里有一个能够使你陷入麻烦当中的分号,那个事实上也不是一个函数,因为这里没有有用的代码,因为,有用的代码都在底端。
The only thing that you have to put in the function prototype, ; again, is three things; one, the name of the function; the return value; and its arguments.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字;,返回值,和它的参数。
So it turns out that, main, yes, is the default function you write, at least in C, when writing a program.
结果是,main函数,是的,这是你写的默认函数,至少是在C语言中,当写程序的时候。
Only the operating system has controlling of byte zero NULL in the computer's RAM and so if a function ever returns null, aka zero, well, something must have gone wrong because that can't possibly belong to me that memory because by human convention zero is owned by the operating system; not by a program I wrote.
只用操作系统在内存中能够控制,字节0,并且如果一个函数返回,或者说0,好的,可能出错了,因为那可能是不属于我的内存,因为惯例上,0是由操作系统拥有的,而不是由我的程序拥有的。
In this case, V = /P. Have two quantities and the number of moles gives you another property. You don't need to know the volume. All you need to know is the pressure and temperature and the number of moles to get the volume.
以及气体的摩尔数,就可以得到第三个量,知道压强,温度和气体的,摩尔数就可以推导出气体的体积,这称为状态方程,它建立了状态函数之间的联系。
So now, this equation here relates three state functions together: the pressure the volume, and the temperature. Now, if you remember, we said that if you had a substance, if you knew the number of moles and two properties, you knew everything about the gas.
压强,体积和温度,大家应该还记得,我们提过,只要知道气体的摩尔数,和任意两个状态函数,就可以推导出其他的状态函数,这样,我们可以把它改写成。
So, what we can do to actually get a probability instead of a probability density that we're talking about is to take the wave function squared, which we know is probability density, and multiply it by the volume of that very, very thin spherical shell that we're talking about at distance r.
我们能得到一个概率,而不是概率密度的方法,就是取波函数的平方,也就是概率密度,然后把它乘以一个在r处的,非常非常小的,壳层体积。
应用推荐