两输入二值变量的16种逻辑操作和三输入二值变量的256种逻辑操作均可以实现。
All 16 logic operations of two inputs and all 256 logic functions of three inputs can be implemented.
为使这个方法更加简单,将对变量的访问封装在第二个函数中,该函数使用配置键名及一个缺省值作为参数,如下所示。
To make this method a little easier, I wrap the access to the variable in a second function that takes a configuration key name and a default value, as shown below.
第二种情形,即变量的条件修改,是重新使用的问题的一个子集,只是有时我们会保持现有的值,有时需要使用一个新值。
The second case, the conditional modification of a variable, is a subset of the variable reuse problem except that sometimes we will keep our existing value and sometimes we will want a new value.
第二种方法是指标,指标是根据事件或预定义变量定义的公式计算出的值。
The second approach is metrics, which is the value calculated by the formula defined by events or pre-defined variables.
例子里的第二个case,我们已经解出了元组里的值并且附给了局部变量,然后在结果表达式中使用了这些变量。
In the second case in this example, we've extracted the values inside the tuple to scoped variables, then reused these variables in the resulting expression.
集合覆盖问题涉及的是二元决策变量;也就是说,它们的值只能是0或1、yes或no。
The set covering problem teaches binary decision variables; that is, they can only be 0 or 1, yes or no.
首先,从最主要的角度来看,函数的目的是“查找与第一个模式中的值匹配的字符串,然后通过将第三个变量作为要操作的字符串,以第二个模式替换匹配结果”。
First, in broadest terms, the function's purpose is to "match what is in the first pattern, then replace it with the second pattern, using the third argument as the string to operate on."
创建一个shell变量cc,它的值是gcc二进制代码的完整路径文件名。
Create a shell variable called cc whose value is the full path file name to the GCC binary.
在对read方法的第二个调用中,试图把值分配给str变量,结果返回一个空的string。
The second call to the read method, where you try to assign the value to the str variable, returns an empty string.
有两个变量:第一个用来保存指向Web服务的uri;第二个保存的是邮政编码的值。
You create two variables: the first holds the URI to the Web service and the second holds the zip code value.
本文要讲解如何用两行代码读取这样的参数,第一行告诉Perl要使用XML:Simple,第二行将一个变量设置为文件中的一个值。
This article shows you how to read such a parameter in two lines of code, the first telling Perl that XML: : Simple is being used and the second setting a variable to a value in the file.
第二次读取把整型值存储在一个本地变量中(x1或x2)。
The second read stores the integer value in a local variable (x1 or x2).
这条 case 语句只是检查第二个命令行自变量,然后根据其值执行正确操作。
This case statement simply checks the second command-line argument, and performs the correct action, depending on its value. If we now type
3方差的专业定义是随机变量的二次中心矩,与期望值之差的平方的加权平均值。
The technical definition of variance is the random variable's second central moment, the weighted average of the square of the differences from the expected value.
因此,当变量i的值能被125整除时执行第二个if语句体。
As a result, the body of the second if statement is executed when the value of the variable I is evenly divisible by 125.
但是第二个if语句计算为True,因为变量i能被125整除(并且not运算符将结果0转换成布尔值True)。
But now the second if statement evaluates True because the variable I is evenly divisible by 125 (and the not operator turns the resulting 0 into a Boolean True).
这种方法采用移动最小二乘函数来近似解变量,并且采用移动最小二乘近似函数的权函数作为加权残值法的权函数。
It used the moving least square approximation as a trial function, and used the weighted function of the moving least square approximation as a test function of the weighted residual method.
第二阶段分配方法的变量,以便从数据源中的相应列检索这些变量的值。
The second phase is to assign the method's variables to retrieve their values from the appropriate column in your data source.
在选择该第一变量值(B)具有其第一值且使该第二及第三变量(C,D)具有其实际值的情形下,执行该函数。
The function is run with the first variable value (b) selected as having its first value, and with the second and third variables (c, d) having their actual values.
再度在选择该第一变量值(B)具有其第二值且使该第二及第三变量(C,D)具有其实际值的情形下,执行该函数。
The function is again run with the first variable value (b) selected as having its second value, and again with the second and third variables (c, d) having their actual values.
再度在选择该第一变量值(B)具有其第二值且使该第二及第三变量(C,D)具有其实际值的情形下,执行该函数。
The function is again run with the first variable value (b) selected as having its second value, and again with the second and third variables (c, d) having their actual values.
应用推荐