So first, I choose a volatility randomly, from some distribution of possible volatilities 2 from to, in this case, 0.2.
来决定的一个值,所以首先我先随机选择一个浮动值,从可能的浮动值中的分布进行选择,在这个例子中就是0。
So it doesn't matter how big the dictionary is, you can instantaneously retrieve the value associated with the key. Extremely powerful.
因为你可以在线性时间,内得到想要的键对应的值,这太强大了。
I've decided that I need to be able, in my program, to swap the value of two variables. All right.
我觉定在我的程序中,我可以,交换两个变量值,好的。
So we know what that number would be, it would be negative 424 kilojoules per mole that we see here.
我们知道它的值是多少,它就是我们在这见到过的负,424,千焦每摩尔。
High adherence scores, good adherence to the Mediterranean Diet across all these studies, was associated with these particular health outcomes.
高遵循度值,即在研究中高度遵循地中海式饮食的人,被证实与以下这些健康性结果有相关性
You know, if you want to measure the potential energy of something in a gravitational field, you have to define the zero somewhere, right, because it's arbitrary. You can set it anywhere you want. It's the same with enthalpy.
你知道,如果你想测量重力场,中某种东西的势能,你需要,在某处定义一个零点,对吧?,因为势能的值是任意的,你可以把它设定在。
We wanted this to be a twenty shilling coin but now in the market it's trading at twenty-one.
我们希望它是一个值二十先令的硬币,但现在它在市场上以二十一个先令的价值来交换。
In math, when you see multiple value solutions, these are eigenvalues.
在数学中,当你看到许多值的解法时,这些就是特征值。
It means, measure them as quickly as you can.
意味着,在尽量短的时间内测出这些值
So even though we think of conditions as being Boolean values true or false, really underneath the hood true means anything other than zero.
即使我们考虑,布尔值的真假条件,在底层“真“表示非零。
By putting it in a function bug if I find a bug and I change my program I can just run the function again.
把我输入的值放到一个函数里,如果以后我在程序中发现了一个,并对程序进行更改的话,我可以直接。
If I wanted every stock to have the same volatility, I could just do that, if you will, at the time I wrote my program.
如果我希望每只股票的浮动值都相同,在我编写程序的时候,如果你愿意的话,我会这么做。
And in contrast, in the lower left hand part of the periodic table, these 2 quantities are low, so also what we're going to see is low electronegativity.
相反地,在周期表的左下部分,这两个量的值都很小,因此我们会看到这里的电负性也很低。
On the other hand, if the value I'm looking for here- sorry, the value I'm looking for is smaller than the value I see here, I just need to look here. All right?
如果我的目标数比这个值要小呢?,我就在这边找就对了,对不对?,做完了这一步,我可以在下一步做相同的操作,假设我选中了这一分支?
OK, so, the thing about a state function is that the function has a value for initial conditions and at final conditions.
态函数的特点是,在初始状态有一个值,在末状态也有一个值。
And when we're talking about the amplitude of the wave, we're talking about the deviation from that average level. So, if we define the average level as zero, you can have either a positive amplitude or a negative amplitude.
当我们讨论一个波的振幅时,我们说的是偏离平均位置的量,如果我们把平均位置,定义为零的话,那幅值不是,正的就是负的,有时候人们在。
It turns out you can list one, give it a name, and if you use square brackets, that tells the compiler I actually want to put multiple values inside of this -- inside of this variable and how do we do that?
结果是你可以列举一个,给它取个名字,如果你使用方括号,那是告诉编译器,在里面我需要许多的值--在这些变量里,我怎么做到的?
We notice that the value of E at r naught is negative, as it should be. It's a negative number.
我们主要到在r圈时E的值为负,和它本来的值一致,是一个负数。
Then the relative price of gold versus silver shifted to the point that the gold with at the twenty-one shilling exchange rate the gold shilling was worth less the gold guinea was worth less than twenty-one shilling.
之后,金子相对于银子的相对价格,就移动到另一个值,在二十一个先令的兑换率下,金先令价值少于,金几尼的价值少于了二十一个先令的价值。
Those two equal signs are saying, is this thing equal to, in value, the thing on the other side?
这两个等号意思是,左边的对象,在值上是不是和另外一边的相等?
There's this notion of a Boolean value named after Mr. Bool, which is just a notion of true or false.
布尔值的概念是在布尔先生之后命名的,它是一个正确或错误的概念。
You've got a picture of somebody's face, it's a million pixels. Each pixel has a range of values from zero to 256. I want to hash a face with some function into an integer.
你有一个人的脸部照片,它有一百万个像素,每个像素的值范围在0到256之间,我想用某个函数将一张脸部照片。
4 So even if the correct mathematical answer is 1.4 or whatever, when you divide an int by an int, you only have room in that variable, in the response for an actual integer.
所以即使那个正确的答案是4,或别的数值,当你用一个整型数除以一个整型数,在那个变量的返回值里,只有,存储一个整型数的空间。
Some people like to use shallow and deep, object and value, but they're talking about the same thing, which is it the same object or is it the same, in this case, set of values, depending on what you want to define as you use it.
有些人喜欢用对象相等值相等,但是它们是同一件东西,也就是是不是同一个对象,或者是不是同样的,在这个例子中,是同样的值集合,这取决于当你使用它的时候,想要怎么来定义它。
And then I could also do a Gaussian one here, with the mean of and the standard deviation of volatility divided by 2.
然后我在这里再写一个高斯分布的函数,它的浮动值的平均值和,标准偏差值都除了2。
I can use that to return values, which I can then use elsewhere, which I did-- and if I just come back and highlight this-- inside of that computation.
我可以用它来返回值,然后我可以在别的地方使用这些返回值,正是我做的--如果我回过头来,在高亮一下这个--在这部分计算内部。
And the answer is, you can use a variable anywhere you can use the value.
答案是,在需要用到值的,任何地方都可以使用变量。
So, we end up with a total of six electrons that are possible that have that 2 p orbital value.
所以我们最后,总共得到了6个电子,在所有可能的“2p“轨道值中。
x Inside of that structure, create a variable name x, and a value associated with it.
创建了一个变量名为,然后给它赋值,请注意我也在这边做的操作。
And when I do this test, what I want to do, is say I'm going to pick the middle spot, and depending on the test, if I know it's in the upper half, I'm going to set my start at the mid point and the end stays the same, if it's in the front half I'm going to keep the front the same and I'm going to change the endpoint.
如果我知道目标数可能,再比中值点大的区间里,我可能就会把开始点设为中值点,而尾点不变,如果在小的那个区间里,就保持开始点不变而把尾点设为中值点,你们可以看到这儿的代码,就是这么做的,对不对?它是怎么做的?
应用推荐