I've got two parameters, they're separated by a comma. Ah, right. Sorry?
我说的是什么?20和56对吧?注意格式,我有两个参数,它们由一个逗号隔开?
But this choice of names, both for my functions and also for my parameters or my variables is completely up to me.
但是这个名字的选择,包括我的函数名,和我的参数名,或者变量名都是我定义的。
fib So I'll create Fib 1, fib1 which has the same arguments as Fib.
所以我将会创建和,有相同参数的。
The way you would go about it, if you're a portfolio manager, is you have to come up with estimates of the inputs to these formulas-- that means the expected returns, the standard deviations, and the covariances.
你所要做的,如果你是一个资产经理,你要做的事情就是,对公式里面的一些参数进行估计-,那些参数包括预期收益,标准差,和协方差。
Let's build this up. Let's see where this comes from, where these parameters a and b comes from. So, the first thing we're going to do is we're going to take our gas in our box, let's build a box full of gases here.
参数a和b有什么含义,首先,假设研究的气体,都在一个容器里,容器里充满了气体,这些是气体分子。
So prices are determined as follows: prices depend on some parameters I'm just going to call a and b, and let me write the equation and then we'll see what it looks like.
价格由如下因素决定,价格取决于两个参数a和b,我们用方程写一下吧
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.
如果你想要你的函数携带参数或,参量,这里有一个微妙的语义差别在,参数和参量之中,但是为了所有的意图,和目的,他们作用是一样的。
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.
你唯一要加入到函数原型中的东西,是有三个东西,一,函数的名字;,返回值,和它的参数。
Two, the arguments or parameters, and three, is the return value.
第二个,参数和参量,还有三,是那个返回值。
We'd like to be able to slice them.
以及其他一些的参数和属性。
Now this happens to be what we would call a linear process, because the number of times I go around the loop is directly related to the size of the argument. If I double 2 the argument, I'm going to double the number of times I go around the loop. If I increase it by five, 5 I'm going to increase by five the number of times I go around the loop.
这恰好是我们会成为,线性复杂度程序的一个例子,因为我要执行循环的次数是,和输入的参数的大小直接相关的,如果我将这个参数乘以,那么我就要将进行循环的次数也乘以2了,如果我把参数加上,那么循环的次数也要加上5了。
b Let me just first write it down, the Van der Waals equation of state.
有两个参数,a和,如果a和b等于0的话。
You can also get away, as I said last time, with just putting parentheses in JavaScript and PHP, this is, in fact, the norm.
就像我上次说的,你也可以不用参数,在JavaScript和PHP中只用圆括号,这实际上是一个规范。
应用推荐