(2). 设 \( (X,Y) \) 为离散型,下列式子中错误的是( )。
A: \( \sum\limits_i {\sum\limits_j {p_{ij} } } =1\; \)
B: \( \sum\limits_i {p_{i\cdot } } =1\; \)
C: \( \sum\limits_j {p_{\cdot j} } =1\; \)
D: \( \sum\limits_i {p_{i\cdot } } +\sum\limits_j {p_{\cdot j} } =1\; \)
A: \( \sum\limits_i {\sum\limits_j {p_{ij} } } =1\; \)
B: \( \sum\limits_i {p_{i\cdot } } =1\; \)
C: \( \sum\limits_j {p_{\cdot j} } =1\; \)
D: \( \sum\limits_i {p_{i\cdot } } +\sum\limits_j {p_{\cdot j} } =1\; \)
举一反三
- \(P\)是一个投影矩阵, 下列哪一条件不能由\(P^2=P,P^T=P\)推出? A: \(P_{ii}\)是\(P\)的第\(i\)列的模长的平方 B: \(P_{ij} \ge 0\) C: \(P_{ii} \le 1\) D: \(|P_{ij}| \le 1\)
- 下面模型段语句表达错误的是 A: min=@sum(links(i,j):c(i,j)*x(i,j)); B: min=@sum(links:c*x); C: @for(vd(j):@sum(wh(i):x(i,j))=d(j)); D: @sum(vd(j):@for(wh(i):x(i,j))=d(j));
- 下面约束段语句表达正确的是 A: @for(wh(i):@sum(vd(j):x(i,j))<=a(i)); B: for(wh(i):@sum(vd(j):x(i,j))<=ai(i)); C: @for(wh(i):@sum(vd(j):x(i,j))<=a(i); D: @for(wh(i):sum(vd(j):x(i,j))<=ai(i));
- 下面程序用来计算1+1/2!+1/3!+…1/10!,请完善程序。#includeintmain(){inti,j;sum=0,fac;for(i=1;i<=10;i++){fac=1;for(j=1;j<=i;j++)fac=fac*j;sum=sum+1/fac;}printf("%f",sum);return0;}
- 下列程序执行后,sum的结果是________。Dim sum As IntegerFor i = 1 To 4 Step 2 For j = 1 To i Step 2 sum += j NextNext A: 6 B: 9 C: 5 D: 7